Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Convert java.awt.Image to org.eclipse.swt.graphics.Image

843807Jan 13 2004 — edited Jan 23 2004
Hi,
I'm currently evaluating SWT and I'm wondering if it's possible to convert an AWT Image to a SWT Image?

I'm using the Morena package to aquire images from TWAIN sources and it delivers a SK.gnome.twain.TwainSource object which implements java.awt.image.ImageProducer. The sample code uses this to create a java.awt.Image object. However, to paint this to the screen I obviously need an SWT Image and this is where I get stuck.

Thanks for any hints,
Guido
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2004
Added on Jan 13 2004
1 comment
315 views