Share via


RenderOptions.GetBitmapScalingMode(DependencyObject) 메서드

정의

지정된 종속성 개체에 대한 BitmapScalingMode 연결된 속성의 값을 반환합니다.

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

매개 변수

target
DependencyObject

BitmapScalingMode 연결된 속성의 값을 검색할 종속성 개체입니다.

반환

BitmapScalingMode

지정된 종속성 개체에 대한 BitmapScalingMode 연결 속성의 현재 값입니다.

특성

예외

지정된 targetnull입니다.

예제

다음 예제에서는 이미지 개체에 BitmapScalingMode 대 한 가져오는 방법을 보여 있습니다.

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

적용 대상

추가 정보