[RESOLVED] [2005] Draw circle with levels of transparency
Title says it all really. I have an image in a picturebox.
When I send a paint event to it I want a circle to appear of a certain size (which I've done) and have a light blue (for example) circle appear on the image but to be semi-transparent so I can still see what's underneath.
Is this possible? I found the option of:
VB Code:
g.FillEllipse(Brushes.Transparent, etc...)
but it's an all or nothing thing. Any advice or links would be very much appreciated.
Re: [2005] Draw circle with levels of transparency
You need to create a colour from ARGB
VB Code:
Dim g As Graphics = e.Graphics
Dim brs As SolidBrush
Dim clr As Color
clr = Color.FromArgb(20, 0, 0, 45)
brs = New SolidBrush(clr)
g.FillEllipse(brs, 10, 10, 100, 100)
This is off my head as an example so no gaurentees :)
Re: [2005] Draw circle with levels of transparency