Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to draw a rectangular gradient fill,WPF always round a path gradient, how to become a rectangular path gradient, We can use GDI + to fill out PathGradientBrush brush effects, WPF how to do it?
Posted

1 solution

No, you can't use GDI+. WPF has nothing do to with it, it is based on DirectX. And no, it does not "always round", this is your fantasy.
I have no idea what did you try (and it's not nice of you to not tell us about it), but you should have used this:
http://msdn.microsoft.com/en-us/library/system.windows.media.lineargradientbrush%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 
Comments
Berton2012 3-Jun-13 3:02am    
Thank you very much for your help, but I don't think you understand what I want, I want to effect the following links, hope you can see and can help me again, thank you!

http://bbs.csdn.net/topics/390475347
Sergey Alexandrovich Kryukov 3-Jun-13 3:14am    
This picture shows exactly what I explained, linear gradient, isn't this obvious? Is this what you want to show, or something you don't?!
If this is what you want to show, please use linear gradient brush and accept my answer formally (green button). If not, explain properly.

If I didn't understand it, this is because you did not specify things accurately.

If you cannot see how to implement the picture you referenced with linear gradient, your problem is vision and logic. I hope this is not the case.

—SA
Berton2012 3-Jun-13 5:00am    
Hello friends, can continue to help me? Thank you!
Berton2012 3-Jun-13 4:03am    
Thank you very much for your reply, I wanted to explain it to you I want results, please check the link again:
http://bbs.csdn.net/topics/390475347?page=1#post-394678835

Those pictures are done with GDI+.
Sergey Alexandrovich Kryukov 3-Jun-13 9:32am    
Yes, yes, yes, linear gradient. Can't you see it?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900