Share via


TransformedBitmap 建構函式

定義

初始化 TransformedBitmap 類別的新執行個體。

多載

TransformedBitmap()

初始化 TransformedBitmap 類別的新執行個體。

TransformedBitmap(BitmapSource, Transform)

初始化 TransformedBitmap 類別的新執行個體,這個執行個體具有指定的 SourceTransform

TransformedBitmap()

初始化 TransformedBitmap 類別的新執行個體。

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

備註

TransformedBitmap 會實作 ISupportInitialize 介面,以優化多個屬性上的初始化。 若要初始化使用此建構函式建立的 TransformedBitmap ,您必須在 和 EndInit 呼叫之間 BeginInit 執行屬性初始化。

適用於

TransformedBitmap(BitmapSource, Transform)

初始化 TransformedBitmap 類別的新執行個體,這個執行個體具有指定的 SourceTransform

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)

參數

source
BitmapSource

TransformedBitmap 執行個體的 Source

newTransform
Transform

TransformedBitmap 執行個體的 Transform

例外狀況

source 參數為 null

newTransform 參數為 null

-或-

轉換不是正交轉換。

備註

TransformedBitmap 使用此建構函式建立的物件會自動初始化。 初始化之後,會忽略屬性變更。

適用於