[]
        
(Showing Draft Content)

CSJ2K.Color.EsRgbColorSpaceMapper.getCompData

getCompData Method

getCompData(DataBlk, int)

<p>Returns, in the blk argument, a block of image data containing the

specifed rectangular area, in the specified component. The data is returned, as a copy of the internal data, therefore the returned data can be modified "in place".

The rectangular area to return is specified by the 'ulx', 'uly', 'w' and 'h' members of the 'blk' argument, relative to the current tile. These members are not modified by this method. The 'offset' of the returned data is 0, and the 'scanw' is the same as the block's width. See the 'DataBlk' class.

If the data array in 'blk' is 'null', then a new one is created. If the data array is not 'null' then it is reused, and it must be large enough to contain the block's data. Otherwise an 'ArrayStoreException' or an 'IndexOutOfBoundsException' is thrown by the Java system.

The returned data has its 'progressive' attribute set to that of the input data.

Declaration
public override DataBlk getCompData(DataBlk outblk, int c)
Parameters
Type Name Description
DataBlk outblk
int c

The index of the component from which to get the data. Only 0 and 3 are valid.

Returns
Type Description
DataBlk

The requested DataBlk

Overrides
See Also