ControlPaint.CreateHBitmap16Bit(Bitmap, Color) 方法

定义

创建 16 位颜色位图。

public:
 static IntPtr CreateHBitmap16Bit(System::Drawing::Bitmap ^ bitmap, System::Drawing::Color background);
public static IntPtr CreateHBitmap16Bit (System.Drawing.Bitmap bitmap, System.Drawing.Color background);
static member CreateHBitmap16Bit : System.Drawing.Bitmap * System.Drawing.Color -> nativeint
Public Shared Function CreateHBitmap16Bit (bitmap As Bitmap, background As Color) As IntPtr

参数

bitmap
Bitmap

要创建的 Bitmap

background
Color

作为背景色的 Color

返回

IntPtr

nativeint

位图的句柄。

例外

bitmap 为 null。

适用于