CreateBitmap - Indirect

static Handle CreateBitmap(BitmapDefinition^ Definition)

This function creates a bitmap (optimized for monochromatic bitmaps).


BitmapDefinition^ Definition

A bitmap definition structure describing the dimensions and color format of the bitmap being created. If zero is specified for the width and height of the bitmap, a bitmap of dimensions 1x1 pixel is created.



The handle of the bitmap.


For performance reasons, this function should only be used to create monochromatic bitmaps. Color bitmaps should be created through CreateBitmap - Compatible (which takes the device context color format into account).

The function DeleteObject may be used to destroy the bitmap when it is no longer required.


Name Space IPlusPlus::Graphics
Class Gdi
Assembly IPlusPlus.WinPlus.dll