Component based gradient brushes -
07-01-2009
, 07:24 PM
I’ve been trying to write a paint method for a control which I really
want to basically combine two LinearGradientBrushes together; one for
the color and one for the transparency. Basically I want it to go
from one color in the upper left to another color in the lower right
with the gradient at 45 degrees. Then I want the transparency
gradient to be horizontal and go from 0% to 100% in the bottom 1/5 of
the control.
I’ve tried all sorts of combinations of linear and path gradient
brushes and a solution still seems to elude me. Short of doing it
pixel by pixel I’m just not seeing a solution. Has anyone done
anything like this? |