ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.Color Namespace / EsRgbColorSpaceMapper Class / getCompData Method
The index of the component from which to get the data. Only 0 and 3 are valid.

In This Topic
    getCompData Method (EsRgbColorSpaceMapper)
    In This Topic

    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.

    Syntax
    'Declaration
     
    
    Public Overrides Function getCompData( _
       ByVal outblk As DataBlk, _
       ByVal c As Integer _
    ) As DataBlk
    public override DataBlk getCompData( 
       DataBlk outblk,
       int c
    )

    Parameters

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

    Return Value

    The requested DataBlk
    See Also