ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.wavelet.synthesis Namespace / InvWTFull Class / getCompData Method
Its coordinates and dimensions specify the area to return. If it contains a non-null data array, then it must be large enough. If it contains a null data array a new one is created. The fields in this object are modified to return the data.
The index of the component from which to get the data.

In This Topic
    getCompData Method (InvWTFull)
    In This Topic
    Returns a block of image data containing the specifed rectangular area, in the specified component, as a copy (see below). The rectangular area is specified by the coordinates and dimensions of the 'blk' object.

    The area to return is specified by the 'ulx', 'uly', 'w' and 'h' members of the 'blk' argument. These members are not modified by this method.

    The data returned by this method is always a copy of the internal data of this object, if any, and it can be modified "in place" without any problems after being returned. 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 must be big enough to contain the requested area.

    The returned data always has its 'progressive' attribute unset (i.e false)

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

    Parameters

    blk
    Its coordinates and dimensions specify the area to return. If it contains a non-null data array, then it must be large enough. If it contains a null data array a new one is created. The 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