CreateCompatibleBitmap function gdi32
The CreateCompatibleBitmap function creates a bitmap compatible with the device that is associated with the specified device context.
HBITMAP CreateCompatibleBitmap(
  HDC hdc,
  int cx,
  int cy
);
Implementation
int CreateCompatibleBitmap(int hdc, int cx, int cy) =>
    _CreateCompatibleBitmap(hdc, cx, cy);