I need to draw a transparent plane over a User control in my DotNET 2.0 app. That much is easy at least. The hard bit is that I need some (potentially overlapping) holes in this plane. Shape and size of the holes is not known at compile-time.
I tried to approach this with Region and excluding a bunch of GraphicPaths from it. This works great except that the edges of the holes are not anti-aliased.
Any other solutions?
Please bear in mind that the User control is the main part of a window which can be maximised. Thus, it has a potentially very large surface area. The solution must be fast enough to give me at least 10 fps in a full-screen case.
Edit: Added image of what I’d like to achieve:
Image of what I'm talking about. http://en.wiki.mcneel.com/content/upload/images/HolesInTPlane.png
This is a way to do it: (although it doesnt sound fast, it uses pure blitfunctions so potentially it could be fast enough)