ComponentOne Bitmap for WPF
C1.WPF.Bitmap.4.5.2 Assembly / C1.WPF.Bitmap Namespace / C1Bitmap Class / ExportFragment Method / ExportFragment(IntPtr,ImageRect) Method
The pointer to a unmanaged block of memory or IntPtr.Zero.
The source rectangle within the image.

In This Topic
    ExportFragment(IntPtr,ImageRect) Method
    In This Topic
    Copies a fragment of the image to a unmanaged block of memory.
    Syntax
    'Declaration
     
    Public Overloads Function ExportFragment( _
       ByVal dstPtr As IntPtr, _
       ByVal srcRect As ImageRect _
    ) As Integer
    public int ExportFragment( 
       IntPtr dstPtr,
       ImageRect srcRect
    )

    Parameters

    dstPtr
    The pointer to a unmanaged block of memory or IntPtr.Zero.
    srcRect
    The source rectangle within the image.

    Return Value

    Returns the number of bytes in the requested fragment of the image.
    See Also