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

# CreateBitmapIndirect(3w)

## NAME

**CreateBitmapIndirect** (GDI32.@)

## SYNOPSIS

HBITMAP CreateBitmapIndirect\
  (\
   const BITMAP\* *bmp*\
  )

## DESCRIPTION

Creates a bitmap with the specified info.

## PARAMS

*bmp* **\[In\]**  Pointer to the bitmap information describing the bitmap.

## RETURNS

**Success:** Handle to bitmap

**Failure:** **NULL**. Use **[GetLastError(3w)](/GetLastError/3w.md)** to determine the cause.

## NOTES

If a width or height of **0** are given, a 1x1 monochrome bitmap is returned.

## IMPLEMENTATION

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

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

Debug channel **"bitmap"**.
