###User Defined Function###
_WinAPI_AdjustBitmap

###Description###
Creates a new device-depended bitmap (DDB) from the source bitmap with new dimensions and color adjustment.

###Syntax###
#include <WinAPIGdi.au3>
_WinAPI_AdjustBitmap ( $hBitmap, $iWidth, $iHeight [, $iMode = 3 [, $tAdjustment = 0]] )


###Parameters###
@@ParamTable@@
$hBitmap
	A handle to the source bitmap.
$iWidth
	The width of the new bitmap, in pixels.
	If this parameter is (-1), the width will be the same as in the source bitmap.
$iHeight
	The height of the new bitmap, in pixels.
	If this parameter is (-1), the height will be the same as in the source bitmap.
$iMode
	[optional] The stretching mode.
	This parameter can be one of the following values:
		$BLACKONWHITE
		$COLORONCOLOR (Default)
		$HALFTONE
		$WHITEONBLACK
		$STRETCH_ANDSCANS
		$STRETCH_DELETESCANS
		$STRETCH_HALFTONE
		$STRETCH_ORSCANS
$tAdjustment
	[optional] $tagCOLORADJUSTMENT structure containing the color adjustment values.
	This color adjustment is used only if $HALFTONE ($STRETCH_HALFTONE) stretching mode are set.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success 	A handle to the newly created bitmap (DDB).
Failure 	0.
@@End@@


###Remarks###
The <a href="_WinAPI_AdjustBitmap.htm">_WinAPI_AdjustBitmap()</a> creates a device-depended bitmaps compatible with the application's current screen.

This function does not support bitmaps with alpha channel, you can use the <a href="_WinAPI_AlphaBlend.htm">_WinAPI_AlphaBlend()</a> function to work
with these bitmaps.

When you are finished using the bitmap, destroy it using the <a href="_WinAPI_DeleteObject.htm">_WinAPI_DeleteObject()</a> function. The function
does not destroy the original bitmap, you must to destroy it yourself.


###Related###
_WinAPI_AlphaBlend, _WinAPI_DeleteObject


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