# Function Reference

# _WinAPI_CreateCompatibleBitmap

Creates a bitmap compatible with the specified device context

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

## Parameters

$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

## Remarks

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

## Related

_WinAPI_CreateSolidBitmap, _WinAPI_DeleteObject

## See Also

Search CreateCompatibleBitmap in MSDN Library.