Jump to navigation

Poupou's Corner of the Web

Looking for perfect security? Try a wireless brick.
Otherwise you may find some unperfect stuff here...


Colorful Regions

Work on non-rectangular regions is progressing nicely. At least it's progressed enough that I can make screenshots again :-)

All the combine modes are supported, which means it's possible to do Union, Intersection, Complement, Excude and Xor on any shape using System.Drawing.

An intersection (blue) between two shapes (red and green)

An xor (blue) between the same two shapes (not displayed)

An complement (blue) between the two transformed shapes

Still more work is needed to transform (GdipTransformRegion) once a binary operation has been executed on a region (which is why Matrix #3 combobox is empty). And of course it needs tests, lots of them...

3/3/2006 10:47:41 | Comments

The views expressed on this website/weblog are mine alone and do not necessarily reflect the views of my employer.