[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Windows.GcWicBitmap.ExportFragment

ExportFragment Method

ExportFragment(GcBitmap, int, int, Rectangle)

Copies a fragment of the image to the specified GcBitmap object.

Declaration
public void ExportFragment(GcBitmap dstBitmap, int xDst, int yDst, Rectangle srcRect)
Public Sub ExportFragment(dstBitmap As GcBitmap, xDst As Integer, yDst As Integer, srcRect As Rectangle)
Parameters
Type Name Description
GcBitmap dstBitmap

The destination GcBitmap object.

int xDst

The x-coordinate, in pixels, of the upper-left corner of the destination rectangle.

int yDst

The y-coordinate, in pixels, of the upper-left corner of the destination rectangle.

Rectangle srcRect

The source rectangle within the image.

ExportFragment(IntPtr, Rectangle)

Copies a fragment of the image to the unmanaged block of memory.

Declaration
public int ExportFragment(IntPtr dstPtr, Rectangle srcRect)
Public Function ExportFragment(dstPtr As IntPtr, srcRect As Rectangle) As Integer
Parameters
Type Name Description
IntPtr dstPtr

The pointer to the unmanaged block of memory or IntPtr.Zero.

Rectangle srcRect

The source rectangle within the image.

Returns
Type Description
int

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