Output Processing script from Java AWT/Swing paint call
...To create a PDEGraphics2D instance, pass the constructor an instance of a standard Graphics2D object, together with the size of the canvas to paint:
PDEGraphics2D g= new PDEGraphics2D(Graphics2D g, int w, int h)
or
PDEGraphics2D g= new PDEGraphics2D(Graphics2D g, Dimension d)
Alternatively, pass the component to paint as the input to one of the static paint methods:
PDEGraphics2D g=PDEGraphics2D.paint(Component c);
PDEGraphics2D g=PDEGraphics2D.paint(JComponent c);
PDEGraphics2D g=PDEGraphics2D.paint(Window c);
PDEGraphics2D g=PDEGraphics2D.paint(JApplet c);
The getCode(..) and write(....) methods can then be used to access the generated script and create HTML documents.
A powerful C++ class library for image manipulation
ImageStone is a powerful C++ class library for image manipulation. Its features include load, save, display, transformation, and nearly 100 special image effects. It can be used cross platform (includes Windows, Linux, Mac), and especially under windows it can be used as a DIB wrapper class.