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

# CreateBitmap(3w)

## NAME

**CreateBitmap** (GDI32.@)

## SYNOPSIS

HBITMAP CreateBitmap\
  (\
   INT     *width*,\
   INT     *height*,\
   UINT    *planes*,\
   UINT    *bpp*,\
   LPCVOID *bits*\
  )

## DESCRIPTION

Creates a bitmap with the specified info.

## PARAMS

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

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

*planes* **\[In\]**  Number of color *planes*.

*bpp* **\[In\]**  Number of *bits* to identify a color.

*bits* **\[In\]**  Pointer to array containing color data.

## RETURNS

**Success:** Handle to bitmap

**Failure:** **0**

## IMPLEMENTATION

Declared in **"gdiplusenums.h"**.

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

Debug channel **"bitmap"**.
