Hi DaemonFish, thanks for your reply.
Do you know of any C# code examples of applying the clipper effect? How would I set it where the 2nd ellipse only draws where it intersects with the circle?
Main Topics
Browse All TopicsI'm trying to duplicate the gradient on the face of this clock where the gradient origin is on the bottom right and it fades into the grayish color. The code below doesn't seem to work nor does
LinearGradientMode.Backwar
LinearGradientMode.Forward
LinearGradientMode.Vertica
LinearGradientMode.Horizon
variations on the gradient brush. Any suggestions would be appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi again,
Just create a graphicspath first.
GraphicsPath p = new GraphicsPath();
Then take p.AddEllipse( x,y,width,height);
Then on the graphics object where you draw the clock, use
g.Clip = new Region(p);
Then you draw the big ellipse, and if you require to draw outside the clipper again just call g.ResetClip();
I've successfully divided the top gloss and bottom gloss into two different paths. I can't seem to duplicate the gradient where it starts out white bottom right and extends outward. Just thought I'd run it by you really quick, any ideas how to do that? I tried a lineargradient with an angle passed to it, but the angle doesn't seem to have much effect.
Also, take a look here. This is actually the effect you are looking for, except that should start with white in the centre, and the dark color on the outside.
http://www.java2s.com/Code
Best of luck :)
Business Accounts
Answer for Membership
by: DaemonFishPosted on 2009-09-16 at 23:55:51ID: 25353387
If you want to draw the entire clock using GDI I would do it the following way:
1. First draw the white circle representing the clock.
2. Then set the clipper to that same circle.
3. Then draw a big circle with a gradient from the bottom right "corner" of the clock, and up to the centre of the clock ( you might have to adjust positions some to get the effect just right, but the general idea should work fine. Not the best explanation, but I have attached an image to illustrate this.
4. Then draw the two border circles, and then the other details on the clock. Using trigonometry should give you the positions for the emelemts fairly easy.
Illustration for point 3.