HI,
I am drawing on canvas using SVG libraries, free hand drawing.After drawing on canvas,want to save drawn image in memory.So how to save SvgImage object reference.
public void paint(Graphics g) {
// *** clear the display
g.setColor(255, 255, 255);
g.fillRect(0, 0, getWidth(), getHeight());
// *** render the SVG image
sg.bindTarget(g);// sg stands for Scalable Graphics
sg.setTransparency(1f);
sg.render(0, 0, svgImage);
sg.releaseTarget();
}
after free hand drawing on this canvas, i want to save updated image in memory.
Plz Help me.......

Reply With Quote


