TransformedBitmap.BeginInit 메서드

정의

TransformedBitmap 초기화가 시작되었음을 나타냅니다.

public:
 virtual void BeginInit();
public void BeginInit ();
abstract member BeginInit : unit -> unit
override this.BeginInit : unit -> unit
Public Sub BeginInit ()

구현

예외

TransformedBitmap는 현재 초기화되고 있습니다. BeginInit()가 이미 호출되었습니다.

또는 TransformedBitmap이 이미 초기화되었습니다.

예제

다음 예제에서는 초기화 하는 방법을 보여 줍니다는 TransformedBitmap 집합을 사용 하 여 속성을 사용 하 여 합니다 BeginInitEndInit 메서드.

// Create the new BitmapSource that will be used to scale the size of the source.
TransformedBitmap myRotatedBitmapSource = new TransformedBitmap();

// BitmapSource objects like TransformedBitmap can only have their properties
// changed within a BeginInit/EndInit block.
myRotatedBitmapSource.BeginInit();

// Use the BitmapSource object defined above as the source for this BitmapSource.
// This creates a "chain" of BitmapSource objects which essentially inherit from each other.
myRotatedBitmapSource.Source = myBitmapImage;

// Flip the source 90 degrees.
myRotatedBitmapSource.Transform = new RotateTransform(90);
myRotatedBitmapSource.EndInit();
' Create the new BitmapSource that will be used to scale the size of the source.
Dim myRotatedBitmapSource As New TransformedBitmap()

' BitmapSource objects like TransformedBitmap can only have their properties
' changed within a BeginInit/EndInit block.
myRotatedBitmapSource.BeginInit()

' Use the BitmapSource object defined above as the source for this BitmapSource.
' This creates a "chain" of BitmapSource objects which essentially inherit from each other.
myRotatedBitmapSource.Source = myBitmapImage

' Flip the source 90 degrees.
myRotatedBitmapSource.Transform = New RotateTransform(90)
myRotatedBitmapSource.EndInit()

설명

간의 속성 초기화를 수행 해야 BeginInitEndInit 호출 합니다. 한 번의 TransformedBitmap 되었습니다 초기화 속성 변경은 무시 됩니다.

적용 대상

추가 정보