SVG to ImageSVG to Image
An example of scripting with beanshell
Home > Books > Tutorials and Training Guides > Image Processing > SVG to Image

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Hilbert Curve

Iterations:

A BeanShell program algorithically creates an SVG rending of the Hilbert curve. (BeanShell source) The SVG is converted to a PNG representation by the active:imageSVG2PNG service. The PNG is displayed to the left.

As you experiment with different iteration counts you should notice that the higher numbers require considerably more processing time. You should also note that when an iteration count is requested multiple times the subsequent requests return much more quickly because the computed image is available from cache.

Experiment with the code in the playpen.

© 2003-2007, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.