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

# SetBitmapBits(3w)

## NAME

**SetBitmapBits** (GDI32.@)

## SYNOPSIS

LONG SetBitmapBits\
  (\
   HBITMAP *hbitmap*,\
   LONG    *count*,\
   LPCVOID *bits*\
  )

## PARAMS

*hbitmap* **\[In\]**  Handle to bitmap.

*count* **\[In\]**  Number of bytes in bitmap array.

*bits* **\[In\]**  Address of array with bitmap *bits*.

## DESCRIPTION

Sets *bits* of color data for a bitmap.

## RETURNS

**Success:** Number of bytes used in setting the bitmap *bits*

**Failure:** **0**

## IMPLEMENTATION

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

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

Debug channel **"bitmap"**.
