[]
        
(Showing Draft Content)

C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.InvertRectangle

InvertRectangle Method

InvertRectangle(Rectangle)

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

Declaration
public virtual void InvertRectangle(Rectangle rectangle)
Parameters
Type Name Description
Rectangle rectangle

A Pointstructure that contains the logical coordinates of the rectangle to be inverted.

Remarks

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

Exceptions
Type Condition
SystemErrorException