###User Defined Function###
_GDIPlus_BitmapCloneArea

###Description###
Create a clone of a Bitmap object from the coordinates and format specified

###Syntax###
#include <GDIPlus.au3>
_GDIPlus_BitmapCloneArea ( $hBmp, $iLeft, $iTop, $iWidth, $iHeight [, $iFormat = 0x00021808] )


###Parameters###
@@ParamTable@@
$hBmp
	Handle to a Bitmap object
$iLeft
	X coordinate of upper left corner of the rectangle to copy
$iTop
	Y coordinate of upper left corner of the rectangle to copy
$iWidth
	The width of the rectangle that specifies the portion of this bitmap to copy
$iHeight
	The height of the rectangle that specifies the portion of this bitmap to copy
$iFormat
	[optional] Pixel format for the new bitmap:
		$GDIP_PXF01INDEXED = 1 bit per pixel, indexed
		$GDIP_PXF04INDEXED = 4 bits per pixel, indexed
		$GDIP_PXF08INDEXED = 8 bits per pixel, indexed
		$GDIP_PXF16GRAYSCALE = 16 bits per pixel, grayscale
		$GDIP_PXF16RGB555 = 16 bits per pixel; 5 bits for each RGB component
		$GDIP_PXF16RGB565 = 16 bits per pixel; 5 bits for red, 6 bits for green and 5 bits blue
		$GDIP_PXF16ARGB1555 = 16 bits per pixel; 1 bit for alpha and 5 bits for each RGB component
		$GDIP_PXF24RGB = 24 bits per pixel; 8 bits for each RGB component
		$GDIP_PXF32RGB = 32 bits per pixel; 8 bits for each RGB component. No alpha component.
		$GDIP_PXF32ARGB = 32 bits per pixel; 8 bits for each RGB and alpha component
		$GDIP_PXF32PARGB = 32 bits per pixel; 8 bits for each RGB and alpha component, pre-mulitiplied
		$GDIP_PXF48RGB = 48 bits per pixel; 16 bits for each RGB component
		$GDIP_PXF64ARGB = 64 bits per pixel; 16 bits for each RGB and alpha component
		$GDIP_PXF64PARGB = 64 bits per pixel; 16 bits for each RGB and alpha component, pre-multiplied
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	a handle to a new Bitmap object.
Failure:	0 and sets the @error flag to non-zero, @extended may contain GPSTATUS error code ($GPID_ERR*).
@@End@@


###Remarks###
When you are done with the Bitmap object, call <a href="_GDIPlus_BitmapDispose.htm">_GDIPlus_BitmapDispose()</a> to release the resources


###Related###
_GDIPlus_BitmapDispose, _GDIPlus_ImageGetPixelFormat


###See Also###
@@MsdnLink@@ GdipCloneBitmapAreaI


###Example###
@@IncludeExample@@
