共用方式為


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

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

例外狀況

bitmapgraphicsnull

適用於