RenderOptions.GetBitmapScalingMode(DependencyObject) Método

Definición

Devuelve el valor de la propiedad adjunta BitmapScalingMode de un objeto de dependencia especificado.

public:
 static System::Windows::Media::BitmapScalingMode GetBitmapScalingMode(System::Windows::DependencyObject ^ target);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static System.Windows.Media.BitmapScalingMode GetBitmapScalingMode (System.Windows.DependencyObject target);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetBitmapScalingMode : System.Windows.DependencyObject -> System.Windows.Media.BitmapScalingMode
Public Shared Function GetBitmapScalingMode (target As DependencyObject) As BitmapScalingMode

Parámetros

target
DependencyObject

Objeto de dependencia del que se va a recuperar el valor de la propiedad adjunta BitmapScalingMode.

Devoluciones

BitmapScalingMode

Valor actual de la propiedad asociada BitmapScalingMode del objeto de dependencia especificado.

Atributos

Excepciones

El target especificado es null.

Ejemplos

En el ejemplo siguiente se muestra cómo obtener para BitmapScalingMode un objeto de imagen.

// Get the bitmap scaling mode for the image.
BitmapScalingMode bitmapScalingMode = RenderOptions.GetBitmapScalingMode(MyImage);
' Get the bitmap scaling mode for the image.
Dim bitmapScalingMode As BitmapScalingMode = RenderOptions.GetBitmapScalingMode(MyImage)

Se aplica a

Consulte también