ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.roi.encoder Namespace / ROIScaler Class / 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 (ROIScaler)
    In This Topic
    This function gets a datablk from the entropy coder. The sample sin the block, which consists of the quantized coefficients from the quantizer, are scaled by the values given for any ROIs specified.

    The function calls on a ROIMaskGenerator to get the mask for scaling the coefficients in the current block.

    Syntax
    'Declaration
     
    
    Public Overridable Function getNextInternCodeBlock( _
       ByVal c As Integer, _
       ByVal cblk As CBlkWTData _
    ) As CBlkWTData
    public virtual 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