RenderOptions.GetBitmapScalingMode(DependencyObject) Metodo

Definizione

Restituisce il valore della proprietà associata BitmapScalingMode relativa a un oggetto dipendenza specificato.

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

Parametri

target
DependencyObject

Oggetto dipendenza da cui recuperare il valore della proprietà associata BitmapScalingMode.

Restituisce

Valore corrente della proprietà associata BitmapScalingMode per l'oggetto dipendenza specificato.

Attributi

Eccezioni

Il valore specificato per il parametro target è null.

Esempio

Nell'esempio seguente viene illustrato come ottenere per BitmapScalingMode un oggetto immagine.

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

Si applica a

Vedi anche