語言

CachedBitmap(Bitmap, Graphics) 建構函式

定義

為裝置設定graphics建立一個依賴裝置bitmap的複製品。

public:
 CachedBitmap(System::Drawing::Bitmap ^ bitmap, System::Drawing::Graphics ^ graphics);
public CachedBitmap(System.Drawing.Bitmap bitmap, System.Drawing.Graphics graphics);
new System.Drawing.Imaging.CachedBitmap : System.Drawing.Bitmap * System.Drawing.Graphics -> System.Drawing.Imaging.CachedBitmap
Public Sub New (bitmap As Bitmap, graphics As Graphics)

參數

bitmap
Bitmap

那個 Bitmap 要轉換。

graphics
Graphics

用來格式化快取副本bitmap的物件。Graphics

例外狀況

bitmap 或 graphics 為 null。

適用於