Function Reference


Inverts a rectangle in a window by performing a logical NOT operation on the color values for each pixel

#include <WinAPIGdi.au3>
_WinAPI_InvertRect ( $hDC, $tRECT )


$hDC Handle to the device context.
$tRECT $tagRECT structure that contains the logical coordinates of the rectangle to be inverted.

Return Value

Success: True
Failure: False


On monochrome screens, the _WinAPI_InvertRect() makes white pixels black and black pixels white. On color screens,
the inversion depends on how colors are generated for the screen. Calling _WinAPI_InvertRect() twice for the same
rectangle restores the display to its previous colors.

See Also

Search InvertRect in MSDN Library.