---
name: "CreateCompatibleBitmap"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/CreateCompatibleBitmap"
---

# CreateCompatibleBitmap(3w)

## NAME

**CreateCompatibleBitmap** (GDI32.@)

## SYNOPSIS

HBITMAP CreateCompatibleBitmap\
  (\
   HDC *hdc*,\
   INT *width*,\
   INT *height*\
  )

## DESCRIPTION

Creates a bitmap compatible with the **DC**.

## PARAMS

*hdc* **\[In\]**  Handle to device context.

*width* **\[In\]**  Width of bitmap.

*height* **\[In\]**  Height of bitmap.

## RETURNS

**Success:** Handle to bitmap

**Failure:** **0**

## IMPLEMENTATION

Declared in **"wingdi.h"**.

Implemented in **"dlls/gdi32/bitmap.c"**.

Debug channel **"bitmap"**.
