formZ SDK | 5.0 API Reference | System | Runtime Library (FZRT) | Graphics

# fzrt_pix_format_enum

Description

Pixel formats. This represents the storage of pixel data in a pixel buffer. The pixel format is dependent on the depth of the pixel buffer. Creating a pixel buffer with FZRT_PBUF_FORMAT_DEFAULT, will choose the most efficient pixel buffer for the current , depending on the pixel buffer depth and graphics card.

enum fzrt_pix_format_enum {

FZRT_PBUF_FORMAT_DEFAULT,

FZRT_PBUF_FORMAT_RGB,

FZRT_PBUF_FORMAT_BGR,

FZRT_PBUF_FORMAT_INDEXED,

FZRT_PBUF_FORMAT_RGBA,

FZRT_PBUF_FORMAT_ARGB,

FZRT_PBUF_FORMAT_BGRA,

FZRT_PBUF_FORMAT_ABGR,

FZRT_PBUF_FORMAT_555,

FZRT_PBUF_FORMAT_555BGR,

FZRT_PBUF_FORMAT_555RGBA,

FZRT_PBUF_FORMAT_555BGRA,

FZRT_PBUF_FORMAT_565,

FZRT_PBUF_FORMAT_565BGR,

FZRT_PBUF_FORMAT_ALPHA,

FZRT_PBUF_FORMAT_UNDEFINED };

Members

FZRT_PBUF_FORMAT_DEFAULT

- default format of native graphics and screen

FZRT_PBUF_FORMAT_RGB

- 24 bit format with order of Red, Green, Blue

FZRT_PBUF_FORMAT_BGR

- 24 bit format with order of Blue, Green, Red

FZRT_PBUF_FORMAT_INDEXED

- Palette based pixel data

FZRT_PBUF_FORMAT_RGBA

- 32-bit Red, Green, Blue with alpha in low byte

FZRT_PBUF_FORMAT_ARGB

- 32-bit with alpha in high byte followed by Red, Green, Blue

FZRT_PBUF_FORMAT_BGRA

- 32-bit Blue, Green, Red with alpha in low byte

FZRT_PBUF_FORMAT_ABGR

- 32-bit with alpha in high byte followed by Blue, Green, Red

FZRT_PBUF_FORMAT_555

- packed in as ARRRRRGGGGGBBBBB

FZRT_PBUF_FORMAT_555BGR

- packed in as ABBBBBGGGGGRRRRR

FZRT_PBUF_FORMAT_555RGBA

- packed in as RRRRRGGGGGBBBBBA

FZRT_PBUF_FORMAT_555BGRA

- packed in as BBBBBGGGGGRRRRRA

FZRT_PBUF_FORMAT_565

- 16-bit format packed in as RRRRRGGGGGGBBBBB

FZRT_PBUF_FORMAT_565BGR

- 16-bit format packed in as BBBBBGGGGGGRRRRR

FZRT_PBUF_FORMAT_ALPHA

- ALPHA channel only, Create a single channel, with either alpha data if available, or averaged RGB value

FZRT_PBUF_FORMAT_UNDEFINED

- undefined pixel format

Availability

5.0.0.0

See Also

fzrt_pbuf_get_pixels, , fzrt_pbuf_put_pixels

Defined in

fzrt_api_type.h