>>>>> "KL" == Keiron Liddle <[EMAIL PROTECTED]> writes:
KL> On Tue, 2002-07-02 at 13:36, Thomas E Deweese wrote: - started KL> implementation of patterns and gradients Patterns generally KL> work. The gradient coordinates are currently wrong, I'm not sure KL> how to get this right. >> Anything we can do to help? Pointers to the suspected problem >> areas? KL> I have worked out what was wrong, I need to apply the gradients KL> transform and the transform for the current pdf state because the KL> coords need to be abolute for pdf. It seems to be working for KL> linear and radial gradients - the asf-logo.svg works, thats the KL> most important thing! Sounds good. KL> Unfortunately it appears that pdf cannot handle all the radial KL> gradients. It only has a single radius whereas in svg rx and ry KL> may be different. This can be done by applying an additional transform scale(1, ry/rx); Then just use rx as the radious (the scale will then distort it into the proper ellipse). KL> Also the center point cannot be outside the circle centered around KL> the focal point with the given radius. There may be ways to KL> handle this but it is too complicated for now. In fact even in SVG the point must be inside the circle, but renderers are required to move the point to the edge of the circle by moving it along the line through the center of the circle or some such. In fact if you have compensated for your scale for the focal, point (fx'=fx, fy'=fy*rx/ry) then you can just use the simple circle equasion (not ellipse). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]