Hi,
Does anybody know how can a program can load an SVG, modify it (based
on XML configuration file) and transform it in PNG file without using
any event ??
For info:
I do not want to deal with events as I neeed to generate many PNG (and
so to load many SVG). I made a program that works for ONE image but
with 2, 3, ..images . , it doesn't :(
Here is a simplified piece of my code:
String parserClassName = XMLResourceDescriptor.getXMLParserClassName();
SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parserClassName);
try {
document = f.createDocument(new
File(svgFullFilePath).toURL().toString());
//ApplyConfig();
} catch(IOException e){
Log.Write(e.toString());
}
Element r = document.getElementById("SEL_POSITION__AIR_FLOW");
r.setAttribute("value", "HI");
CreatePng(document); // This method works fine
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]