# Function Reference

# _WinAPI_SetBrushOrg

Sets the brush origin that GDI assigns to the next brush an application selects into the specified device context

#include <WinAPIGdi.au3>
_WinAPI_SetBrushOrg ( $hDC, $iX, $iY )

## Parameters

$hDC | Handle to the device context.
$iX | The x-coordinate, in device units, of the new brush origin.
$iY | The y-coordinate, in device units, of the new brush origin.

## Return Value

Success: | True
Failure: | False

## Remarks

Call _WinAPI_GetExtended() to retrieve a $tagPOINT structure containing the previous brush origin.

## Related

_WinAPI_GetExtended

## See Also

Search SetBrushOrgEx in MSDN Library.