How to implement such such a gradient path like a ring?
C / C++ / MFC
4
Posts
2
Posters
0
Views
1
Watching
-
How to implement such a gradient path like this: http://p13.freep.cn/p.aspx?u=v20_p13_photo_1303041411469897_0.png[^] using gdi or gdi+?
-
Take a look at the
LinearGradientBrush
class[^].Use the best guess
-
Thanks for your reply. and however, LinearGradientBrush only draw gradient area on straight way. PathGradientBrush might be helpness, but Im not sure how to do with it.
At a guess you could use either brush type to flood fill a circle, then overpaint an inner circle in the background colour. That would give you the basic ring shape. You need to do some experimentation to figure out the optimum methods.
Use the best guess