| synopsis || arguments || prev || next |
jp2_colour add_colour( int prec=0, kdu_byte approx=0)
Java: Jp2_colour Add_colour( int prec, byte approx)
[Declared in "../apps/compressed_io/jpx.h"]
Provides an interface which may be used for setting up the information in a Color Description (colr) box. You may call this function multiple times to provide multiple colour descritions for a single compositing layer.
You ARE REQUIRED to add at least one colour box, and complete its initialization before calling jpx_target::write_headers.
For an explanation of precedence, see the comments appearing with jpx_colour::get_precedence.
For an explanation of approximation levels, see the comments appearing with jpx_colour::get_approximation_level.