CachedBitmap(Bitmap, Graphics) 构造函数

定义

为 的设备设置创建与设备相关的 副本bitmapgraphics

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

适用于