User32InvertRect(IntPtr, Rectangle) Method

Inverts a NativeRectangle in a window by performing a logical NOT operation on the color values for each pixel in the rectangle's interior.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll")]
public static bool InvertRect(
	IntPtr hdc,
	in Rectangle refRect
)

Parameters

hdc  IntPtr
A handle To the device context.
refRect  Rectangle
A pointer to a Rectangle structure that contains the logical coordinates of the rectangle to be inverted.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

Remarks

See Also