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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top