Transparent Linear Gradient #299
-
Hi, I'm trying to add a linear gradient the starts solid and fades to transparent over the top of an existing image but can't seem to achieve the transparancy aspect of it. After: I'm using the LinearGradientBrush and the code works with two solid colours, but I can't seem to get the transparancy working. TIA |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Without any code it’s hard to say what you are doing wrong. My guess is though that you’re using a pixel format that does not support alpha transparency. |
Beta Was this translation helpful? Give feedback.
-
Here is the code I'm using. The transparency comes out as black
Thanks for helping. |
Beta Was this translation helpful? Give feedback.
Without any code it’s hard to say what you are doing wrong. My guess is though that you’re using a pixel format that does not support alpha transparency.