Rectangles with Inverted Color

  • 16 years ago

    Windows uses, in many cases, an inverse color while drawing varies rectangles.  This is not a single color, but the opposite of what every a certain point in the rectangle is currently over.  Some examples inclued the dashed line used when dragging over the windows desktop (the "selection rectangle").  click and drag, then while still holding down the mosue on the windows desktop, screen capture and past into paint to zoom in a see this in action.  Does the .net framework have something that can specify the inverse of whatever a line/rectangle/ellipse is being drawn over?  Or do I have to calculate every point in this rectanlge the exact same way the graphics.drawrectangle does (i have no clue how to do this and I know it will probably be increadably slow), loop through them and calculate the inverse of that certain pixel?  Since windows uses this inverse color for drawing rectangles in so many places, i assume it would be included in the framework...  Because if it isnt, im not sure if a manual approach can be implemented efficently.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity.” - Dennis Ritchie