[]
        
(Showing Draft Content)

CSJ2K.j2k.image.ImgDataAdapter

ImgDataAdapter Class

This class provides a default implementation of the methods in the 'ImgData' interface. The default implementation is just to return the value of the source, where the source is another 'ImgData' object.

       <p>This abstract class can be used to facilitate the development of other
       classes that implement 'ImgData'. For example a YCbCr color transform can
       inherit from this class and all the trivial methods do not have to be
       re-implemented.</p><p>If the default implementation of a method provided in this class does
       not suit a particular implementation of the 'ImgData' interface, the method
       can be overridden to implement the proper behavior.</p>
Implements
Namespace: CSJ2K.j2k.image
Assembly: C1.WPF.PdfViewer.4.6.2.dll
Syntax
public abstract class ImgDataAdapter : ImgData

Constructors

Name Description
ImgDataAdapter(ImgData)

Instantiates the ImgDataAdapter object specifying the ImgData source.

Fields

Name Description
imgdatasrc

The ImgData source

tIdx

Index of the current tile

Properties

Name Description
ImgHeight

Returns the overall height of the image in pixels. 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>
ImgULX

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

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

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

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

Returns the overall width of the image in pixels. 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>
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>
TileHeight

Returns the overall height of the current tile in pixels. This is the tile's height without accounting for any component subsampling. This is also referred as the reference grid height in the current tile.

       <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 offset in the reference grid

TileWidth

Returns the overall width of the current tile in pixels. This is the tile's width without accounting for any component subsampling. This is also referred as the reference grid width in the current tile.

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

Methods

Name Description
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.

       <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>
getCompULX(int)

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

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

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

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

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

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

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

       <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 advances to the next 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