CreateCompatibleBitmap function gdi32

HBITMAP CreateCompatibleBitmap(
  1. HDC hdc,
  2. int cx,
  3. int cy
)

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

To learn more, see learn.microsoft.com/windows/win32/api/wingdi/nf-wingdi-createcompatiblebitmap.

Implementation

@pragma('vm:prefer-inline')
HBITMAP CreateCompatibleBitmap(HDC hdc, int cx, int cy) =>
    HBITMAP(_CreateCompatibleBitmap(hdc, cx, cy));