แก้ไข

แชร์ผ่าน


TransformedBitmap Constructors

Definition

Initializes a new instance of the TransformedBitmap class.

Overloads

TransformedBitmap()

Initializes a new instance of the TransformedBitmap class.

TransformedBitmap(BitmapSource, Transform)

Initializes a new instance of the TransformedBitmap class that has the specified Source and Transform.

TransformedBitmap()

Initializes a new instance of the TransformedBitmap class.

public:
 TransformedBitmap();
public TransformedBitmap ();
Public Sub New ()

Remarks

TransformedBitmap implements the ISupportInitialize interface to optimize initialization on multiple properties. To initialize a TransformedBitmap created using this constructor, you must perform property initialization between BeginInit and EndInit calls.

Applies to

TransformedBitmap(BitmapSource, Transform)

Initializes a new instance of the TransformedBitmap class that has the specified Source and Transform.

public:
 TransformedBitmap(System::Windows::Media::Imaging::BitmapSource ^ source, System::Windows::Media::Transform ^ newTransform);
public TransformedBitmap (System.Windows.Media.Imaging.BitmapSource source, System.Windows.Media.Transform newTransform);
new System.Windows.Media.Imaging.TransformedBitmap : System.Windows.Media.Imaging.BitmapSource * System.Windows.Media.Transform -> System.Windows.Media.Imaging.TransformedBitmap
Public Sub New (source As BitmapSource, newTransform As Transform)

Parameters

source
BitmapSource

The Source of the new TransformedBitmap instance.

newTransform
Transform

The Transform of the new TransformedBitmap instance.

Exceptions

The source parameter is null.

The newTransform parameter is null.

-or-

The transform is not an orthogonal transform.

Remarks

TransformedBitmap objects created using this constructor are automatically initialized. After initialization, property changes are ignored.

Applies to