RenderOptions.GetBitmapScalingMode(DependencyObject) Método

Definição

Devolve o valor da BitmapScalingMode propriedade associada para um objeto de dependência 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

O objeto de dependência a partir do qual recuperar o valor da BitmapScalingMode propriedade anexada.

Devoluções

O valor atual da BitmapScalingMode propriedade associada no objeto de dependência especificado.

Atributos

Exceções

O especificado target é null.

Exemplos

O exemplo seguinte mostra como obter o BitmapScalingMode para um objeto imagem.

// 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)

Aplica-se a

Ver também