ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.quantization.quantizer Namespace / CBlkQuantDataSrcEnc Interface / getNextInternCodeBlock Method
The component for which to return the next code-block.
If non-null this object will be used to return the new code-block. If null a new one will be allocated and returned. If the "data" array of the object is non-null it will be reused, if possible, to return the data.

In This Topic
    getNextInternCodeBlock Method (CBlkQuantDataSrcEnc)
    In This Topic
    Returns the next code-block in the current tile for the specified component. The order in which code-blocks are returned is not specified. However each code-block is returned only once and all code-blocks will be returned if the method is called 'N' times, where 'N' is the number of code-blocks in the tile. After all the code-blocks have been returned for the current tile calls to this method will return 'null'.

    When changing the current tile (through 'setTile()' or 'nextTile()') this method will always return the first code-block, as if this method was never called before for the new current tile.

    The data returned by this method can be the data in the internal buffer of this object, if any, and thus can not be modified by the caller. The 'offset' and 'scanw' of the returned data can be arbitrary. See the 'CBlkWTData' class.

    The 'ulx' and 'uly' members of the returned 'CBlkWTData' object contain the coordinates of the top-left corner of the block, with respect to the tile, not the subband.

    Syntax
    'Declaration
     
    
    Function getNextInternCodeBlock( _
       ByVal c As Integer, _
       ByVal cblk As CBlkWTData _
    ) As CBlkWTData
    CBlkWTData getNextInternCodeBlock( 
       int c,
       CBlkWTData cblk
    )

    Parameters

    c
    The component for which to return the next code-block.
    cblk
    If non-null this object will be used to return the new code-block. If null a new one will be allocated and returned. If the "data" array of the object is non-null it will be reused, if possible, to return the data.

    Return Value

    The next code-block in the current tile for component 'n', or null if all code-blocks for the current tile have been returned.
    See Also