Function Reference


Creates a bitmap compatible with the specified device context

#include <WinAPIGdi.au3>
_WinAPI_CreateCompatibleBitmap ( $hDC, $iWidth, $iHeight )


$hDC Identifies a device context
$iWidth Specifies the bitmap width, in pixels
$iHeight Specifies the bitmap height, in pixels

Return Value

Success: The handle to the bitmap
Failure: 0


When you no longer need the bitmap, call the _WinAPI_DeleteObject() function to delete it


_WinAPI_CreateSolidBitmap, _WinAPI_DeleteObject

See Also

Search CreateCompatibleBitmap in MSDN Library.