CreateBitmap - Indirect


static Handle CreateBitmap(BitmapDefinition^ Definition)

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

Parameters

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.

Return

Handle

The handle of the bitmap.

Notes

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.

Details

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