[]
        
(Showing Draft Content)

C1.Win.Bitmap.C1Bitmap.ExportFragment

ExportFragment Method

ExportFragment(IntPtr, ImageRect)

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

Declaration
public int ExportFragment(IntPtr dstPtr, ImageRect srcRect)
Parameters
Type Name Description
IntPtr dstPtr

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

ImageRect srcRect

The source rectangle within the image.

Returns
Type Description
int

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

ExportFragment(Bitmap, ImageRect)

Copies a fragment of the image to the given System.Drawing.Bitmap.

Declaration
public void ExportFragment(Bitmap gdiBitmap, ImageRect srcRect)
Parameters
Type Name Description
Bitmap gdiBitmap

The destination System.Drawing.Bitmap.

ImageRect srcRect

The source rectangle within the image.