I'm still very much interested in keeping things within java. From what
I understand, after the svg is parsed, an ExtendedGeneralPath is
generated that holds all parts of an svg. I haven't been able to figure
a good number of things:
(1) how is the path generated, and is there only 1 such path for the
entire svg?
(2) What iterates over the path to create the awt shapes
(shapepainter?)?
(3) What actually draws the shapes on the canvas.

Ideally, I'd like to have access to the generated awt shapes right
before they are drawn. I actually want to try rendering them in
Eclipse's SWT, so I would like to establish a mapping of sorts, and
rather then having the generated awt shapes drawn on a awt/swing canvas,
generate my own set of shapes and drawn them on an draw2d shell.
Naturally, I'd like batik to do as much work as possible, with my code
only "redirecting" where the shapes are drawn.

|eg|


-----Original Message-----
From: Thomas DeWeese [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 29, 2003 11:36 AM
To: Batik Users
Subject: Re: Cutting out awt


Grinvald, Edward wrote:


> I am trying to use batik's fascilities for parsing and rendering on a
> graphic platform other then awt/swing. In other words, i would like to

> use everything in the JSVGCanvas, up to the point of actually putting 
> the shapes onto a Swing container. Instead, i'd like to have shapes 
> expressed differently (let's say something like to a file for ASCII
art 
> or something). Where would be the best place for me to "cut" in and 
> "redirect" the drawing of a shape from swing to elsewhere.

    Well there exists Transcoders which go to things like JPEG/PNG.
These render to an offscreen image (a large array of ints one for each
pixel).  This would be an excellent source of data for generating some
forms of ASCII art.  However this still uses java.awt - but I suspect
you are referring to the GUI display parts of awt.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to