Clipboard.GetImage 方法

定義

從剪貼簿傳回 BitmapSource 物件,其中包含 Bitmap 格式的資料。

public:
 static System::Windows::Media::Imaging::BitmapSource ^ GetImage();
public static System.Windows.Media.Imaging.BitmapSource GetImage ();
static member GetImage : unit -> System.Windows.Media.Imaging.BitmapSource
Public Shared Function GetImage () As BitmapSource

傳回

BitmapSource 物件,其中包含 Bitmap 格式的資料,如果資料無法使用這個格式,則為 null

備註

這個方法會 BitmapSource 傳回 物件,不論是原生可用的資料,或當資料可以自動轉換成 Bitmap 資料格式時。

點陣圖會將電腦圖形表示為記憶體中的位陣列,而這些位代表影像中個別圖元的屬性。

適用於

另請參閱