win32gui.CreateCompatibleBitmap

PyGdiHANDLE = CreateCompatibleBitmap(hdc, width , height )

Creates a bitmap compatible with the device that is associated with the specified device context.

Parameters

hdc : int

handle to DC

width : int

width of bitmap, in pixels

height : int

height of bitmap, in pixels