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

# SetDIBits(3w)

## NAME

**SetDIBits** (GDI32.@)

## SYNOPSIS

INT SetDIBits\
  (\
   HDC               *hdc*,\
   HBITMAP           *hbitmap*,\
   UINT              *startscan*,\
   UINT              *lines*,\
   LPCVOID           *bits*,\
   const BITMAPINFO\* *info*,\
   UINT              *coloruse*\
  )

## DESCRIPTION

Sets pixels in a bitmap using colors from **DIB**.

## PARAMS

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

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

*startscan* **\[In\]**  Starting scan line.

*lines* **\[In\]**  Number of scan *lines*.

*bits* **\[In\]**  Array of bitmap *bits*.

*info* **\[In\]**  Address of structure with data.

*coloruse* **\[In\]**  Type of color indexes to use.

## RETURNS

**Success:** Number of scan *lines* copied

**Failure:** **0**

## IMPLEMENTATION

Declared in **"gdi\_private.h"**.

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

Debug channel **"bitmap"**.
