[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [rap-dev] Re: Introducing myself & Graphics with RAP
|
Hi Matthias,
Is this really a working solution? I thought, that Graphics2D is only
functional with an X-Server or a running Windows (depends on the OS).
So if you would deploy your application to a (standard) server without
having an X server running - will you be able to create your Images?
... just a thought.
Saludos,
Jordi
Am 15.06.2008 um 22:22 schrieb Matthias Basler:
please use the Newsgroup for RAP-usage related problems. The
mailinglist
is used for project development related communication.
I see. OK.
There is a mechanism to write images with RAP, which is used for the
decoration stuff. But this is still internal, since we first wanted
to see if
this relative new implementation works properly before making it API.
I found a working solution myself. It involves a modified version if
the "Graphics2DRender" class which can be found on the net.
Basically:
- Render into a BufferedImage with Graphics2D
- Copy the pixels from this into an ImageData object
- Use ResourceFactory.findImage(imageData) to get an image from it.
Works like a charm and I even can use the Graphics2D API I got so
much used to.
--
Matthias Basler
matthiasbasler@xxxxxxxxxxxxxxx
_______________________________________________
rap-dev mailing list
rap-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/rap-dev
--
Jordi Böhme López
Eclipse Consultant
Yoxos Enterprise Project Lead
Innoopract Informationssysteme GmbH
jboehme@xxxxxxxxxxxxxx
http://www.innoopract.com
Tel: 0721 - 66 47 33 - 0
Fax: 0721 - 66 47 33 29
========================= Legal Disclaimer =====================
According to Section 80 of the German Corporation Act
Innoopract Informationssysteme GmbH must indicate the following
information:
Address: Stephanienstrasse 20, 76133 Karlsruhe Germany
General Manager: Jochen Krause, Eric von der Heyden
Registered Office: Karlsruhe, Commercial Register Karlsruhe HRB 7883
============================================================
Attachment:
smime.p7s
Description: S/MIME cryptographic signature