المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Gradient Texture with Transparency



C# Programming
04-29-2011, 06:30 AM
Does anybody have an idea how to draw an image (like using TextureBrush) with gradient transparency (like using LinearGradientBrush)?

The only examples I can find on drawing an image with transparency use ColorMatrix to give the entire image a transparency value, which is not what I'm looking for. I guess what I really need is a LinearGradientTextureBrush, which of course doesn't exist. Does anybody have a suggestion on how to accomplish this? I'm out of ideas.

Thanks in advance for any suggestions.
"Political correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end" - Unknown