i'm a little confused on how exactely should I exort a Graph2d to jpg. I suppose the JPGIOHandler is the right class for the job. However, how do i pass my Graph2d object to it? Only in ImageOutputHandler there are some methods accepting a Graph2d, but they all seem to be doing something special.
The most interesting one seems to be write(Graph2d, OutputStream). However, what about the size of the image i can set with createImage()? There is also the method encode(Image, OutputStream), how does that one relate to write? And if i want to use that one, how do i pass it my Graph2d?
In the documentation, in example 9.31, there is a method called writeGraphToFile referenced. Unfortunately, i couldn't find it anywhere in the documentation. I suppose this one would clarifie things.
A code example would be highly appreciated.
closed with the note:
Not a yEd question.