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.

适用于