Defines the key for the image style. Possible values are any image URL, registered key in mxImageResources or short data URI as defined in mxImageBundle. The type of the value is String.
Piet Souris wrote:It might be creating a genuine SVG, this way, or it might be generating a bitmap. I don't know that library, but I will take a look at it. Keep us informed aout your findings!
Stephan van Hulst wrote:I see that the JGraphX library has a com.mxgraph.shape package. Can you compose your symbols from shapes in that package?
Piet Souris wrote:What kind of images are you working with? For normal pictures from a camera, enlargement, certainly if not too extreme, gives excellent results (see the standard Java classes like BufferedImageOp and its variants, in combination with RenderingHints).
If you have such an image, then SVG has two options: either the BitMap is simply incorporated in the SVG-file, in which case enlargement has the same problems, or the BitMap is converted into geometric figures like Lines and Bezier curves. Inkscape has such a facility, but I don't know how well that works.
If you yourself create images by drawing straight lines and such into, say, a BufferedImage, then you might as well create a Path, that works similar to SVG and scales without blurring. See the API.
Rob Spoor wrote:If you get a String that means that the user object is a String. There are no transformations done between setting the value and getting it again.