Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export camera view as SVG image #223

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 5 comments
Open

Export camera view as SVG image #223

GoogleCodeExporter opened this issue Mar 14, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 26 Jul 2011 at 4:21

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 1 Aug 2011 at 4:10

@GoogleCodeExporter
Copy link
Author

Batik reportedly has a feature that creates an SVG document from Java2D calls.

Original comment by [email protected] on 1 Aug 2011 at 4:24

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 1 Aug 2011 at 4:39

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 31 Aug 2012 at 8:29

  • Added labels: Toolkit-Piccolo2D.Java

@GoogleCodeExporter
Copy link
Author

Also see issue#61 and issue#81 that are SVG related as well.

Original comment by [email protected] on 30 Sep 2014 at 8:24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant