[]
        
(Showing Draft Content)

CSJ2K.Color.Resampler

Resampler Class

This class resamples the components of an image so that all have the same number of samples. The current implementation only handles the case of 2:1 upsampling.

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

Constructors

Name Description
Resampler(BlkImgDataSrc, ColorSpace)

Ctor resamples a BlkImgDataSrc so that all components have the same number of samples.

       Note the present implementation does only two to one
       respampling in either direction (row, column).

Methods

Name Description
ToString()

Return an appropriate String representation of this Resampler instance.

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.

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.

getCompSubsY(int)

Returns the component subsampling factor in the vertical direction, for the specified component.

getInternCompData(DataBlk, 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..