I am using the C API, and I want to simply draw a rounded rectangle with a gradient fill.
Solid fill works great, but when I try to use a gradient, the rectangle is simply black, is this supported at all (I did not find any mention of the word 'gradient' in "pixel-wand.c")?
and if not what is the alternative?
Code: Select all
PixelSetColor(gradient, "gradient:red-blue"); // fails, full black
//PixelSetColor(gradient, "white"); // works, full white
DrawSetFillColor(draw, gradient);
DrawSetStrokeColor(draw, black);
DrawRoundRectangle(draw, 0, 0 ,inWidth-1, inHeight-1, 8, 8);