Login | Register
My pages Projects Community openCollabNet

Discussions > users > [gef-users] PGML to GIF

gef
Discussion topic

Back to topic list

[gef-users] PGML to GIF

Reply

Author lqn <loic dot queran at free dot fr>
Full name lqn <loic dot queran at free dot fr>
Date 2003-05-18 02:05:27 PDT
Message Hi,

I am trying to convert a PGML diagram into a GIF image with the following
code :

Diagram diagram = PGMLParser.SINGLETON​.readDiagram(url);
editor = new Editor(diagram);
Rectangle clip = new Rectangle(0, 0, 100, 100);
Image image = editor.createImage(clip.width, clip.height);
Graphics graphics = image.getGraphics();
...


Image image = editor.createImage(clip.width, clip.height); returns a null
image. Why ? I suppose I have to instantiate the editor differently, but how
can this easily be done if I do not want to build a fully fledged
application, but only a standalone converter ?

Thanks in advance for any help.

                            Loïc QUERAN


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: users-unsubscribe@ge​f.tigris.org
For additional commands, e-mail: users-help at gef dot tigris dot org

« Previous message in topic | 1 of 3 | Next message in topic »

Messages

Show all messages in topic

[gef-users] PGML to GIF lqn <loic dot queran at free dot fr> lqn <loic dot queran at free dot fr> 2003-05-18 02:05:27 PDT
     Re: [gef-users] PGML to GIF raphael Raphael Langerhorst 2003-06-01 01:35:35 PDT
     Re: [gef-users] PGML to GIF raphael Raphael Langerhorst 2003-06-01 01:38:21 PDT
Messages per page: