ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / GdiplusGraphicDeviceContext Class / InvertRectangle Method
A System.Drawing.Pointstructure that contains the logical coordinates of the rectangle to be inverted.

In This Topic
    InvertRectangle Method (GdiplusGraphicDeviceContext)
    In This Topic
    Inverts a rectangle in a window by performing a logical NOT operation on the color values for each pixel in the rectangle's interior.
    Syntax
    'Declaration
     
    
    Public Overridable Sub InvertRectangle( _
       ByVal rectangle As Rectangle _
    ) 
    public virtual void InvertRectangle( 
       Rectangle rectangle
    )

    Parameters

    rectangle
    A System.Drawing.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.
    See Also