###User Defined Function###
_GDIPlus_BitmapCreateFromScan0

###Description###
Creates a Bitmap object based on an array of bytes along with size and format information

###Syntax###
#include <GDIPlus.au3>
_GDIPlus_BitmapCreateFromScan0 ( $iWidth, $iHeight [, $iStride = 0 [, $iPixelFormat = $GDIP_PXF32ARGB [, $pScan0 = 0]]] )


###Parameters###
@@ParamTable@@
$iWidth
	The bitmap width, in pixels.
$iHeight
	The bitmap height, in pixels.
$iStride
	[optional] Integer that specifies the byte offset between the beginning of one scan line and the next.
$iPixelFormat
	[optional] Specifies the format of the pixel data.
		$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
$pScan0
	[optional] Pointer to an array of bytes that contains the pixel data.
@@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###
After you are done with the object, call <a href="_GDIPlus_BitmapDispose.htm">_GDIPlus_BitmapDispose()</a> to release the object resources.


###Related###
_GDIPlus_ImageDispose


###See Also###
@@MsdnLink@@ GdipCreateBitmapFromScan0


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