Skip to content

API Reference / @gtkx/cairo / Format

Enumeration: Format ​

Defined in: enums.d.ts:36

The memory layout of the pixels of an image surface.

Enumeration Members ​

A1 ​

A1: 3

Defined in: enums.d.ts:457

1 bit per pixel holding an alpha value.


A8 ​

A8: 2

Defined in: enums.d.ts:455

8 bits per pixel holding an alpha value.


ARGB32 ​

ARGB32: 0

Defined in: enums.d.ts:451

32 bits per pixel with premultiplied alpha in the upper 8 bits, then red, green, blue.


INVALID ​

INVALID: -1

Defined in: enums.d.ts:449

No such format exists or is supported.


RGB16_565 ​

RGB16_565: 4

Defined in: enums.d.ts:459

16 bits per pixel with 5 bits red, 6 bits green and 5 bits blue.


RGB24 ​

RGB24: 1

Defined in: enums.d.ts:453

32 bits per pixel with the upper 8 bits unused, then red, green, blue.


RGB30 ​

RGB30: 5

Defined in: enums.d.ts:461

30 bits per pixel with 10 bits per color channel.