This project has moved and is read-only. For the latest updates, please go here.


Topics: General Topics, SharpMap v0.9 / v1.x, WinForms Controls
Feb 12, 2009 at 10:43 PM
Edited Feb 12, 2009 at 10:45 PM
I want to implement transperancy on some layers. Cann somebody help me with code how to implement this. There is some information that this can be done with GradientTheme. Is there some example somewhere?


Feb 13, 2009 at 10:01 AM
Hi cybermkk, When setting the color properties of pens and brushes use Colour.FromArgb(a, r, g, b) where a,r,g,b represent an integer ranging between 0 and 255 and are responsible for the alpha, red , green and blue components of the color. Alpha is the transparency.
so for instance

Color c = Color.FromArgb(100,100,100,100);
Brush b = new SolidBrush(c);

VectorStyle v = new VectorStyle();
v.Fill = b;

hth jd