###User Defined Function###
_GDIPlus_TextureCreate2

###Description###
Creates a TextureBrush object based on an image, a wrap mode and a defining rectangle

###Syntax###
#include <GDIPlus.au3>
_GDIPlus_TextureCreate2 ( $hImage, $fX, $fY, $fWidth, $fHeight [, $iWrapMode = 0] )


###Parameters###
@@ParamTable@@
$hImage
	Pointer to an Image object
$fX
	Leftmost coordinate of the image portion to be used by this brush
$fY
	Uppermost coordinate of the image portion to be used by this brush
$fWidth
	Width of the brush and width of the image portion to be used by the brush
$fHeight
	Height of the brush and height of the image portion to be used by the brush
$iWrapMode
	[optional] Wrap mode that specifies how repeated copies of an image are used to tile an area when it is
		0 - Tiling without flipping
		1 - Tiles are flipped horizontally as you move from one tile to the next in a row
		2 - Tiles are flipped vertically as you move from one tile to the next in a column
		3 - Tiles are flipped horizontally as you move along a row and flipped vertically as you move along a column
		4 - No tiling takes place
@@End@@

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


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


###Related###
_GDIPlus_BrushDispose


###See Also###
@@MsdnLink@@ GdipCreateTexture2


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