xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Hardy <vincent.ha...@sun.com>
Subject Re: SVGGraphics2D & wonderpaths
Date Mon, 15 Apr 2002 15:45:35 GMT
Danny,

I have tried to reproduce the bug you report but with no success (see
the attached test file and corresponding SVG when using the Batik 
SVG Generator test infrastructure). 

Could you tell me what you call exactly on Graphics2D and how it differs
from the code I attached?

Vincent.

Danny Ayers wrote:
> 
> Hi,
> 
> Sorry if I'm missing something obvious here (it's been a 13hr session), but
> my code seems to have found a wonderfully awful algorithm for converting
> from a simple GeneralPath into a <path/>.
> 
> The Java2D code goes like this :
> 
> path.moveTo(x - CROSS_WIDTH / 2, y - CROSS_HEIGHT / 2); // top left
> path.lineTo(x + CROSS_WIDTH / 2, y + CROSS_HEIGHT / 2); // bottom right
> path.moveTo(x - CROSS_WIDTH / 2, y + CROSS_HEIGHT / 2); // bottom left
> path.lineTo(x + CROSS_WIDTH / 2, y - CROSS_HEIGHT / 2); // top right
> 
> An example of the SVG generated through SVGGraphics2D is at
> http://www.isacat.net/svg/verbose.svg
> 
> Suggestions on general ways of getting this sensible and/or pointers to
> related docs would be appreciated - e.g. am I still liable to get this stuff
> using a couple of Line2Ds instead?
> 
> Cheers,
> Danny.
> 
> ---
> Danny Ayers
> <stuff> http://www.isacat.net </stuff>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
Mime
View raw message