Skip to content

PNGColorType

Color type is a single-byte integer that describes the interpretation of the image data. Color type codes represent sums of the following values:

1 (palette used), 2 (color used), and 4 (alpha channel used).

Enumeration Members

COLOR

COLOR: 2

Defined in

plugins/js-png/dist/esm/constants.d.ts:25


COLOR_ALPHA

COLOR_ALPHA: 6

Defined in

plugins/js-png/dist/esm/constants.d.ts:27


GRAYSCALE

GRAYSCALE: 0

Defined in

plugins/js-png/dist/esm/constants.d.ts:24


GRAYSCALE_ALPHA

GRAYSCALE_ALPHA: 4

Defined in

plugins/js-png/dist/esm/constants.d.ts:26