[]
        
(Showing Draft Content)

CSJ2K.j2k.codestream.reader.HeaderDecoder.createColorSpaceMapper

createColorSpaceMapper Method

createColorSpaceMapper(BlkImgDataSrc, ColorSpace)

Creates and returns the EnumeratedColorSpaceMapper corresponding to the information read from the JP2 image file via the ColorSpace parameter.

Declaration
public virtual BlkImgDataSrc createColorSpaceMapper(BlkImgDataSrc src, ColorSpace csMap)
Parameters
Type Name Description
BlkImgDataSrc src

The bit stream reader agent where to get code-block data from.

ColorSpace csMap

provides color space information from the image file

Returns
Type Description
BlkImgDataSrc

The color space mapping object

Exceptions
Type Condition
ICCProfileException

if image contains a bad icc profile

ColorSpaceException

if image contains a bad colorspace box