ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.codestream.reader Namespace / HeaderDecoder Class / createColorSpaceMapper Method
The bit stream reader agent where to get code-block data from.
provides color space information from the image file

In This Topic
    createColorSpaceMapper Method
    In This Topic
    Creates and returns the EnumeratedColorSpaceMapper corresponding to the information read from the JP2 image file via the ColorSpace parameter.
    Syntax
    'Declaration
     
    
    Public Overridable Function createColorSpaceMapper( _
       ByVal src As BlkImgDataSrc, _
       ByVal csMap As ColorSpace _
    ) As BlkImgDataSrc
    public virtual BlkImgDataSrc createColorSpaceMapper( 
       BlkImgDataSrc src,
       ColorSpace csMap
    )

    Parameters

    src
    The bit stream reader agent where to get code-block data from.
    csMap
    provides color space information from the image file

    Return Value

    The color space mapping object
    Exceptions
    ExceptionDescription
    image access exception
    if image contains a bad icc profile
    if image contains a bad colorspace box
    See Also