Convert java.awt.Image to org.eclipse.swt.graphics.Image
843807Jan 13 2004 — edited Jan 23 2004Hi,
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