| synopsis || arguments || prev || next |
kdu_byte * get_icc_profile( int * num_bytes=NULL)
[Declared in "../apps/compressed_io/jp2.h"]
Returns a pointer to a block of memory which holds the embedded ICC profile. Returns NULL if the colour specification does not involve an embedded ICC profile (as indicated by get_space).
The returned block of memory, if any, belongs to the internal object; no attempt should be made to delete it or to use it beyond the lifetime of the object which originally supplied this interface.
If not NULL, this argument is used to return the length of the profile — written to * num_bytes. It is also possible to determine the length of an ICC profile from its own header, although this might not be convenient for some applications.