[]
        
(Showing Draft Content)

CSJ2K.Color.PalettizedColorSpaceMapper

PalettizedColorSpaceMapper Class

This class provides decoding of images with palettized colorspaces. Here each sample in the input is treated as an index into a color palette of triplet sRGB output values.

Inheritance
PalettizedColorSpaceMapper
Implements
Namespace: CSJ2K.Color
Assembly: C1.WPF.PdfViewer.4.6.2.dll
Syntax
public class PalettizedColorSpaceMapper : ColorSpaceMapper, BlkImgDataSrc, ImgData

Constructors

Name Description
PalettizedColorSpaceMapper(BlkImgDataSrc, ColorSpace)

Ctor which creates an ICCProfile for the image and initializes all data objects (input, working, and output).

Properties

Name Description
NumComps

Returns the number of components in the image.

Methods

Name Description
ToString()
createInstance(BlkImgDataSrc, ColorSpace)

Factory method for creating instances of this class.

getCompData(DataBlk, int)
getCompImgHeight(int)

Returns the height in pixels of the specified component in the overall image.

       <p>This default implementation returns the value of the source.</p>
getCompImgWidth(int)

Returns the width in pixels of the specified component in the overall image.

getCompSubsX(int)

Returns the component subsampling factor in the horizontal direction, for the specified component. This is, approximately, the ratio of dimensions between the reference grid and the component itself, see the 'ImgData' interface desription for details.

getCompSubsY(int)

Returns the component subsampling factor in the vertical direction, for the specified component. This is, approximately, the ratio of dimensions between the reference grid and the component itself, see the 'ImgData' interface desription for details.

getCompULX(int)

Returns the horizontal coordinate of the upper-left corner of the specified component in the current tile.

getCompULY(int)

Returns the vertical coordinate of the upper-left corner of the specified component in the current tile.

getInternCompData(DataBlk, int)
getNomRangeBits(int)
getTileCompHeight(int, int)

Returns the height in pixels of the specified tile-component.

getTileCompWidth(int, int)

Returns the width in pixels of the specified tile-component