| synopsis || arguments || prev || next |
void init( int num_colours)
Java: void Init( int num_colours)
[Declared in "../apps/compressed_io/jp2.h"]
Initializes the internal object for use with the indicated number of colour channels. It is illegal to call this function unless there is an internal object ( exists must return true) and that object has not yet been initialized.
To complete the initialization process, use the set_colour_mapping, set_opacity_mapping and set_premult_mapping functions.
The number of colours must agree with the colour space described by the associated jp2_colour object.