Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Crete SWT image from byte array

Reply
Thread Tools

Crete SWT image from byte array

 
 
kfranic@gmail.com
Guest
Posts: n/a
 
      04-22-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where can I download SWT? (SWT homepage) Ramon F Herrera Java 11 12-06-2007 03:18 AM
Greece, Crete dariusz-z@go2.pl Digital Photography 0 11-08-2007 10:15 AM
Pictures Crete 2004 Wodan Digital Photography 1 08-25-2005 11:46 PM
Pictures Crete 2004 Wodan Digital Photography 1 08-25-2005 12:50 PM
Converting a Primative byte array to a Byte array object Kirby Java 3 10-08-2004 03:01 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57