Graphics3D Ellipse not transparent

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
WD_Gordon
Newbie
Newbie
Posts: 49
Joined: Wed Jun 18, 2008 12:00 am

Graphics3D Ellipse not transparent

Post by WD_Gordon » Wed Feb 25, 2009 8:25 pm

Hi,

I am sure there is a simple answer to this but when I use the Ellipse method as so, g.Ellipse(r);, I get a solid black ellipse with a border color of the pen.Color. What I am looking for is a ellipse that is not filled in.

Thanks,
Kevin

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Post by Sandra » Thu Feb 26, 2009 10:34 am

Hi WD_Gordon,

If you want ellipse don't fill you can use similar code for next in the event AfterDraw:

Code: Select all

            g.Brush.Transparency = 100;
            g.Ellipse(100, 150, 150, 200 );

You needs call method g.Brush.Transparency before than g.Ellipse(..) because this call g.brush before draw ellipse.



Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply