[cairo] Path Gradients
Milan Marusinec
milan at marusinec.sk
Thu Jan 24 06:09:04 PST 2008
Bobby Salazar wrote:
> Yes, it does. However, I would like to scale it in only one direction. Not uniformly in both X and Y directions.
I added a perspective control to the demo. If you grab one side
of control polygon, you can scale it in just one direction.
http://www.aggpas.org/win32/gradients_contour.exe
Bye
Milano
>> -----Original Message-----
>> From: milan at marusinec.sk
>> Sent: Wed, 23 Jan 2008 18:49:32 +0000
>> To: cairo at cairographics.org
>> Subject: Re: [cairo] Path Gradients
>>
>> Bobby Salazar wrote:
>>> I think that this (with reflect turned off) is exactly what I'm looking
>>> for! I really like the way it renders the glyph. In fact, it very nicely
>>> solves a problem that using a single center point causes - which is that
>>> the gradient along the edge is not the same width for non-uniform shapes
>>> like a rectangle. Also, using your pre-compiled demo app, can you adjust
>>> the scaling for the rendered image, or stretch it in any way? I would be
>>> interested to see how the gradient is affected by transformations.
>> Easy - just resize the window and - it scales ... :-)
>>
>>
>>
>>
>> _______________________________________________
>> cairo mailing list
>> cairo at cairographics.org
>> http://lists.cairographics.org/mailman/listinfo/cairo
More information about the cairo
mailing list