// Special dravel for demo remove
// BufferedImage image = ImageIO.read(new FileInputStream("c:\\userpicture.jpg"));
// TODO: get image.
BufferedImage image = null;
SVGOMImageElement imageelement = new SVGOMImageElement("", clone);
SimpleImageHandler imagehandler = new SimpleImageHandler(new ImageHandlerBase64Encoder());
SVGGeneratorContext svgcxt = SVGGeneratorContext.createDefault(clone);
imagehandler.handleImage((RenderedImage) image, imageelement,
imgx, imgy,
imgwidth, imgheight,
svgcxt);
if(transform != null && !transform.equals("")) {
imageelement.setAttribute("transform", transform);
}
clone.getRootElement().appendChild(imageelement);
}
}