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

In This Topic
    createResampler Method
    In This Topic
    Creates and returns the Resampler which converts the input source to one in which all channels have the same number of samples. This is required for colorspace conversions.
    Syntax
    'Declaration
     
    
    Public Overridable Function createResampler( _
       ByVal src As BlkImgDataSrc, _
       ByVal csMap As ColorSpace _
    ) As BlkImgDataSrc
    public virtual BlkImgDataSrc createResampler( 
       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 resampled BlkImgDataSrc
    Exceptions
    ExceptionDescription
    image access exception
    if image contains a bad colorspace box
    See Also