In file include/igraph2d.h:

## struct csPixelFormat

> Structure describing the pixel format

int PalEntries
  Number of palette entries
int PixelBytes
  Number of bytes for every pixel
int RedBits
  The number of significant bits for every color.
long RedMask
  The masks to extract the color information from a pixel (truecolor mode only)
int RedShift
  The shifts to extract the color information from a pixel (truecolor mode only).

## Documentation

> Structure describing the pixel format

`long RedMask`
  The masks to extract the color information from a pixel (truecolor mode only). Currently only masks for 16-bit/15-bit colors are supported. Ignore the Mask and Shift fields of this structure if PalEntries != 0.

`int RedShift`
  The shifts to extract the color information from a pixel (truecolor mode only).

`int RedBits`
  The number of significant bits for every color.

`int PalEntries`
  Number of palette entries. 0 for truecolor, else the number of palette entries (this number should be equal to 256 even if not all of these 256 colors can be modified (like is the case in Windows)). Currently only 0 and 256 are supported here.

`int PixelBytes`
  Number of bytes for every pixel. The only supported values currently are:

  - 1: for palette mode (256 palette entries)
  - 2: for truecolor 15/16-bit mode (no palette entries)
  - 4: for truecolor 32-bit mode (no palette entries)

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de