ComponentOne PDF for .NET
CSJ2K.j2k.codestream.reader Namespace / FileBitstreamReaderAgent Class / getCompImgWidth Method
The index of the component, from 0 to N-1.
The resolution level, from 0 to L.

In This Topic
    getCompImgWidth Method (FileBitstreamReaderAgent)
    In This Topic
    Returns the width in pixels of the specified component in the overall image, for the given (component) resolution level.

    Note: Component resolution level indexes may differ from tile-component resolution index. They are indeed indexed starting from the lowest number of decomposition levels of same component of each tile.

    Example: For an image (2 tiles) with 1 component (tile 0 having 2 decomposition levels and tile 1 having 3 decomposition levels), the first tile(-component) has 3 resolution levels and the second one has 4 resolution levels, whereas the component has only 3 resolution levels available.

    Syntax
    'Declaration
     
    
    Public Function getCompImgWidth( _
       ByVal c As Integer, _
       ByVal rl As Integer _
    ) As Integer
    public int getCompImgWidth( 
       int c,
       int rl
    )

    Parameters

    c
    The index of the component, from 0 to N-1.
    rl
    The resolution level, from 0 to L.

    Return Value

    The width in pixels of component c in the overall image.
    See Also