ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.image Namespace / Tiler Class / getInternCompData Method
Its coordinates and dimensions specify the area to return, relative to the current tile. Some fields in this object are modified to return the data.
The index of the component from which to get the data.

In This Topic
    getInternCompData Method (Tiler)
    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 reference to the internal data, if any, instead of as a copy, therefore the returned data should not be modified.

    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' and 'scanw' of the returned data can be arbitrary. See the 'DataBlk' class.

    This method, in general, is more efficient than the 'getCompData()' method since it may not copy the data. However if the array of returned data is to be modified by the caller then the other method is probably preferable.

    If the data array in blk is null, then a new one is created if necessary. The implementation of this interface may choose to return the same array or a new one, depending on what is more efficient. Therefore, the data array in blk prior to the method call should not be considered to contain the returned data, a new array may have been created. Instead, get the array from blk after the method has returned.

    The returned data may have its 'progressive' attribute set. In this case the returned data is only an approximation of the "final" data.

    Syntax
    'Declaration
     
    
    Public Function getInternCompData( _
       ByVal blk As DataBlk, _
       ByVal c As Integer _
    ) As DataBlk
    public DataBlk getInternCompData( 
       DataBlk blk,
       int c
    )

    Parameters

    blk
    Its coordinates and dimensions specify the area to return, relative to the current tile. Some fields in this object are modified to return the data.
    c
    The index of the component from which to get the data.

    Return Value

    The requested DataBlk
    See Also