RenderOptions.GetBitmapScalingMode(DependencyObject) Método

Definição

Retorna o valor da BitmapScalingMode propriedade anexada 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 do qual recuperar o valor da BitmapScalingMode propriedade anexada.

Retornos

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

Atributos

Exceções

O especificado target é null.

Exemplos

O exemplo a seguir mostra como obter o BitmapScalingMode para um objeto de 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

Confira também