JpxColorSpecification

class JpxColorSpecification(val method: Int, val enumerated: Int, val iccProfile: ByteArray?)(source)

A JP2 colour specification box (T.800, I.5.3.3), as JpxComponents.colorSpecification reports it.

Constructors

Link copied to clipboard
constructor(method: Int, enumerated: Int, iccProfile: ByteArray?)

Properties

Link copied to clipboard

with method 1 the enumerated colour space: 12 CMYK, 16 sRGB, 17 greyscale, 18 sYCC, among those T.800 Table I.11 lists; -1 for the other methods

Link copied to clipboard

with method 2 or 3 the ICC profile's bytes, else null. Exposed directly: treat it as read-only.

Link copied to clipboard
val method: Int

1 for an enumerated colour space, 2 for a restricted ICC profile, 3 for any ICC profile; another value is passed on as the file stores it

Functions

Link copied to clipboard
open override fun toString(): String