[]
Inverts a rectangle in a window by performing a logical NOT operation on the color values for each pixel in the rectangle's interior.
public virtual void InvertRectangle(Rectangle rectangle)
Type | Name | Description |
---|---|---|
Rectangle | rectangle | A Pointstructure that contains the logical coordinates of the rectangle to be inverted. |
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.
Type | Condition |
---|---|
SystemErrorException |