As part of a UI .net library I need to create corner PNG images to align to the corners of a DIV in order to give it rounded corners.
I thought I could create a dynamic corner by doing the following:
- Create a bitmap (Let's say 25 x 25)
- Fill the background Green (The colour outside of the DIV we are creating these for)
- Call FillEllipse() and create a 50 x 50 circle, with 25% of it overlapping into the 25 x 25 bitmap
- Finally call DrawEllipse() with the same co-ordinates to draw the border
This works well and creates a corner image.
The problem is that I want to colour called by FillEllipse() to be Color.Transparent. This is so the DIV can have a background colour assigned via a style.
However because the FillEllpise() is creating a transparent circle over a coloured background, nothing will appear.
In in summary: How can I punch out a transparent hole?
I thought ExcludeClip() would help, but that only seems to deal with Recentangles.