DocumentMode

The document's color mode.

Values

Name

Description

Value

DocumentMode.BITMAP

Bitmap, which uses one of two color values (black or white) to represent the pixels in an image.

5

DocumentMode.CMYK

CMYK.

3

DocumentMode.DUOTONE

Duotone mode, which creates monotone, duotone (two-color), tritone (three-color), and quadtone (four-color) grayscale images using one to four custom inks.

8

DocumentMode.GRAYSCALE

Grayscale.

1

DocumentMode.INDEXEDCOLOR

Indexed color, in which the number of colors in the image is at most 256, the standard number of colors supported by the GIF and PNG-8 formats and many multimedia applications.

6

DocumentMode.LAB

Lab.

4

DocumentMode.MULTICHANNEL

Image with multiple color channels.

7

DocumentMode.RGB

RGB.

2

Object of

Document.mode