TiffPhotometric

The kind of samples ImageKodec.encodeTiff writes (TIFF 6.0 PhotometricInterpretation, tag 262).

Entries

Link copied to clipboard

Gray (photometric 1) when every pixel is gray, RGB (photometric 2) otherwise, as the calls without options write; bi-level with a CCITT compression.

Link copied to clipboard

One bit a pixel, WhiteIsZero (photometric 0) as fax files are. A pixel is black when its luma (BT.601 weights), laid over white by its alpha, is below half, as ImageKodec.encodeCcitt decides, so this is lossy for anything but a black and white page.

Link copied to clipboard

One sample a pixel, BlackIsZero (photometric 1). A pixel that is not gray is stored as its luma, (77 R + 150 G + 29 B + 128) / 256 (BT.601 weights in eighths of a level), so a gray page is kept exactly.

Link copied to clipboard

A palette (photometric 3) of the page's colours in the order they first appear, at 1, 2, 4 or 8 bits a pixel, the fewest that hold them. Lossless; needs an opaque page of at most 256 colours.

Link copied to clipboard

Red, green and blue (photometric 2), even for a gray page.

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
Link copied to clipboard