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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("User32.dll">]
Public Shared Function InvertRect (
hdc As IntPtr,
ByRef refRect As NativeRectangle
) As Boolean
Dim hdc As IntPtr
Dim refRect As NativeRectangle
Dim returnValue As Boolean
returnValue = User32.InvertRect(hdc,
refRect)
public:
[DllImportAttribute(L"User32.dll")]
static bool InvertRect(
IntPtr hdc,
[InAttribute] NativeRectangle% refRect
)
[<DllImportAttribute("User32.dll")>]
static member InvertRect :
hdc : IntPtr *
refRect : NativeRectangle byref -> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.