User32InvertRect(IntPtr, NativeRectangle) 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 NativeRectangle refRect
)

Parameters

hdc  IntPtr
A handle To the device context.
refRect  NativeRectangle
A pointer to a NativeRectangle 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