Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
The InvertRgn function inverts the colors in the specified region.
Syntax
BOOL InvertRgn(
[in] HDC hdc,
[in] HRGN hrgn
);
Parameters
[in] hdc
Handle to the device context.
[in] hrgn
Handle to the region for which colors are inverted. The region's coordinates are presumed to be logical coordinates.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
On monochrome screens, the InvertRgn function makes white pixels black and black pixels white. On color screens, this inversion is dependent on the type of technology used to generate the colors for the screen.
Examples
For an example, see Using Brushes.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | wingdi.h (include Windows.h) |
| Library | Gdi32.lib |
| DLL | Gdi32.dll |