kinnichiroh / piccolo2d

Automatically exported from code.google.com/p/piccolo2d
0 stars 0 forks source link

Export camera view as SVG image #223

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
An API similar to PNode.toImage might be added to allow for exporting a camera 
view as an image rendered in SVG.

Original issue reported on code.google.com by heue...@gmail.com on 26 Jul 2011 at 4:21

GoogleCodeExporter commented 9 years ago
On further thought, an entire export package might be useful:

Options for how to export a scene graph, image size, scene graph bounds, 
scaling, rendering hints, etc.

Export via the clipboard in serialized scene graph format, for Piccolo2D <--> 
Piccolo2D transfer

Export via the clipboard in an Image or BufferedImage object for Piccolo2D --> 
java application transfer

Export via the clipboard in an InputStream encoded in JPG/PNG format

Cut, Copy, Paste, Clear actions for associating with a PCanvas

Export to a raster image file in PNG format

Export to a raster image file in JPG format

Export to a vector image file in PDF format (would be nice)

Export to a vector image file in SWF/Flash format (if possible, would be nice)

Export to a vector image file in SVG format

Export to PNG, Export to JPG, Export to SVG, &c. actions for associating with a 
PCanvas

If there is interest, I'll create a separate issue.

Original comment by heue...@gmail.com on 1 Aug 2011 at 4:10

GoogleCodeExporter commented 9 years ago
Batik reportedly has a feature that creates an SVG document from Java2D calls.

Original comment by samrr...@gmail.com on 1 Aug 2011 at 4:24

GoogleCodeExporter commented 9 years ago
Yep, I've used that before

http://xmlgraphics.apache.org/batik/using/svg-generator.html
http://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/svggen/SVGGraphics2
D.html

Here's something similar for Flex3/Flash

http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/modules/swfutils/src/j
ava/flash/graphics/g2d/SpriteGraphics2D.java

There's also FreeHEP vectorgraphics package

http://java.freehep.org/vectorgraphics/index.html

Original comment by heue...@gmail.com on 1 Aug 2011 at 4:39

GoogleCodeExporter commented 9 years ago

Original comment by heue...@gmail.com on 31 Aug 2012 at 8:29

GoogleCodeExporter commented 9 years ago
Also see issue#61 and issue#81 that are SVG related as well.

Original comment by mr0...@mro.name on 30 Sep 2014 at 8:24