[]
        
(Showing Draft Content)

CSJ2K.j2k.wavelet.synthesis.MultiResImgDataAdapter

MultiResImgDataAdapter Class

This class provides a default implementation for the methods of the 'MultiResImgData' interface. The default implementation consists just in returning the value of the source, where the source is another 'MultiResImgData' object.

       <p>This abstract class can be used to facilitate the development of other
       classes that implement 'MultiResImgData'. For example a dequantizer can
       inherit from this class and all the trivial methods do not have to be
       reimplemented.</p><p>If the default implementation of a method provided in this class does
       not suit a particular implementation of the 'MultiResImgData' interface,
       the method can be overriden to implement the proper behaviour.</p>
Inheritance
MultiResImgDataAdapter
Implements
Namespace: CSJ2K.j2k.wavelet.synthesis
Assembly: C1.WPF.PdfViewer.4.6.2.dll
Syntax
public abstract class MultiResImgDataAdapter : MultiResImgData

Constructors

Name Description
MultiResImgDataAdapter(MultiResImgData)

Instantiates the MultiResImgDataAdapter object specifying the MultiResImgData source.

Fields

Name Description
mressrc

The MultiResImgData source

tIdx

Index of the current tile

Properties

Name Description
NomTileHeight

Returns the nominal tiles height

NomTileWidth

Returns the nominal tiles width

NumComps

Returns the number of components in the image.

       <p>This default implementation returns the value of the source.</p>
TileIdx

Returns the index of the current tile, relative to a standard scan-line order.

       <p>This default implementation returns the value of the source.</p>
TilePartULX

Returns the horizontal tile partition offset in the reference grid

TilePartULY

Returns the vertical tile partition offset in the reference grid

Methods

Name Description
getCompImgHeight(int, int)

Returns the height in pixels of the specified component in the overall image, for the given resolution level.

getCompImgWidth(int, int)

Returns the width in pixels of the specified component in the overall image, for the given resolution level.

       <p>This default implementation returns the value of the source.</p>
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.

       <p>This default implementation returns the value of the source.</p>
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.

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

Returns the overall height of the image in pixels, for the given resolution level. This is the image's height without accounting for any component subsampling or tiling.

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

Returns the horizontal coordinate of the image origin, the top-left corner, in the canvas system, on the reference grid at the specified resolution level.

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

Returns the vertical coordinate of the image origin, the top-left corner, in the canvas system, on the reference grid at the specified resolution level.

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

Returns the overall width of the image in pixels, for the given resolution level. This is the image's width without accounting for any component subsampling or tiling.

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

Returns the total number of tiles in the image.

       <p>This default implementation returns the value of the source.</p>
getNumTiles(Coord)

Returns the number of tiles in the horizontal and vertical directions.

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

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

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

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

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

Returns the specified synthesis subband tree

getTile(Coord)

Returns the indexes of the current tile. These are the horizontal and vertical indexes of the current tile.

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

Returns the height in pixels of the specified tile-component for the given resolution level.

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

Returns the width in pixels of the specified tile-component for the given resolution level.

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

Returns the overall height of the current tile in pixels, for the given resolution level. This is the tile's height without accounting for any component subsampling.

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

Returns the overall width of the current tile in pixels, for the given resolution level. This is the tile's width without accounting for any component subsampling.

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

Advances to the next tile, in standard scan-line order (by rows then columns). An NoNextElementException is thrown if the current tile is the last one (i.e. there is no next tile).

       <p>This default implementation just changes the tile in the source.</p>
setTile(int, int)

Changes the current tile, given the new indexes. An IllegalArgumentException is thrown if the indexes do not correspond to a valid tile.

       <p>This default implementation just changes the tile in the source.</p>

See Also