แก้ไข

แชร์ผ่าน


CachedBitmap(Bitmap, Graphics) Constructor

Definition

Creates a device-dependent copy of bitmap for the device settings of graphics.

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)

Parameters

bitmap
Bitmap

The Bitmap to convert.

graphics
Graphics

The Graphics object to use to format the cached copy of the bitmap.

Exceptions

bitmap or graphics is null.

Applies to