TransformedBitmap 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 TransformedBitmap 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| TransformedBitmap() |
初始化 TransformedBitmap 類別的新執行個體。 |
| TransformedBitmap(BitmapSource, Transform) |
初始化一個新的類別實例 TransformedBitmap ,該類別的指定 Source 和 Transform。 |
TransformedBitmap()
初始化 TransformedBitmap 類別的新執行個體。
public:
TransformedBitmap();
public TransformedBitmap();
Public Sub New ()
備註
TransformedBitmap 實作 ISupportInitialize 介面以優化多個屬性的初始化。 要用這個建構子初始化一個創建物TransformedBitmap,你必須在 和 BeginInit 呼叫之間EndInit進行屬性初始化。
適用於
TransformedBitmap(BitmapSource, Transform)
初始化一個新的類別實例 TransformedBitmap ,該類別的指定 Source 和 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)
參數
- source
- BitmapSource
- newTransform
- Transform
例外狀況
參數 source 為 null。
備註
TransformedBitmap 使用此建構器建立的物件會自動初始化。 初始化後,屬性變更會被忽略。