Group: GDI+ Bitmap - Library: gdiplus
GpStatus WINGDIPAPI GdipCloneBitmapArea(
REAL x,
REAL y,
REAL width,
REAL height,
PixelFormat format,
GpBitmap *srcBitmap,
GpBitmap **dstBitmap
)
DECLARE INTEGER GdipCloneBitmapArea IN gdiplus;
SINGLE x,;
SINGLE y,;
SINGLE width,;
SINGLE height,;
INTEGER fmt,;
INTEGER srcBitmap,;
INTEGER @ dstBitmap
x [in] Real number that specifies the x-coordinate of the upper-left corner of the rectangle that specifies the portion of this bitmap to copy.
y [in] Real number that specifies the y-coordinate of the upper-left corner of the rectangle that specifies the portion of this bitmap to copy.
width [in] Real number that specifies the width of the rectangle that specifies the portion of this bitmap to copy.
height [in] Real number that specifies the height of the rectangle that specifies the portion of this image to copy.
format [in] Integer that specifies the pixel format of the new bitmap.
srcbitmap [in] Handle to source GDI+ bitmap object.
dstbitmap [out] Handle to new GDI+ bitmap object.
Returns 0 on success.
// In-memory pixel data formats:
// bits 0-7 = format index
// bits 8-15 = pixel size (in bits)
// bits 16-23 = flags
// bits 24-31 = reserved
Home