CreateBitmap - Compatible


static Handle CreateBitmap(Handle Device,
                           int Width,
                           int Height)

This function creates a bitmap compatible with a device context.

Parameters

Handle Device

The handle of a device context for which the created bitmap is compatible.

int Width

The width (in pixels) of the bitmap being created.

int Height

The height (in pixels) of the bitmap being created.

Return

Handle

The handle of the bitmap.

Notes

For non-memory device contexts, the color format of the bitmap that is created matches the color format and palette of the device associated with the specified device context.

If a memory device context containing a device independent section is specified, a device independent section is created.

If zero width and height are specified, a monochromatic bitmap that is 1 unit in width and height is created.

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