| synopsis || arguments || prev || next |

jpx_layer_target::add_colour

Java: Jpx_layer_target::Add_colour

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"]

Go to class description.


Synopsis

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.


Arguments

prec [int]

For an explanation of precedence, see the comments appearing with jpx_colour::get_precedence.

approx [kdu_byte]

For an explanation of approximation levels, see the comments appearing with jpx_colour::get_approximation_level.


| top || synopsis || arguments || prev || next |