Crete SWT image from byte array

K

kfranic

Hi all,
I'm starting with SWT (I like it so far) but I have most stupid
question that I can't find simple answer to...

If I want to create AWT Image from byte array I use:
byte[] buff =...;
Image img = Toolkit.getDefaultToolkit().createImage(buff);

How do I do same thing with org.eclipse.swt.graphics.Image?

I have PNG image within one jar file from which I want to create SWT
image object.

I see that there are complex conversions available and this is not the
approach I'd like to take...

Regards,
FrenKy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top