d2jsp
Gaming and Trading Community
Gaming and Trading Community
Hourly Raffle
Ladder Slasher
Trade Finder
Photo Gallery
Forum Gold FAQ
Instant Messenger
Help and Rules
Live Streams
Account RecoveryResend Validation Email
Hello, GuestLog InRegister
d2jsp Forums > Programmer's Haven > Java, Visual Basic, VBScript > Java Imagedata Question

Add ReplyNew TopicNew Poll
Page 1 of 1
vittujenkevat
#1 Jun 25 2012 12:22pm
Group: Members
Posts: 6,483
Joined: Dec 28 2007
Gold: 15.00
Noob question, but what are the differences in data between these 2?
Code
ImageLoader loader = new ImageLoader();
ImageData[] imageData = loader.load(fileName);

Code
Image image = new Image(display,fileName);
ImageData imageData = image.getImageData();


Wondering what the differences are as the last option works just fine for 8bit pictures, but not for 24bit pictures and the first one works just fine for either one. Thanks.
carteblanche
#2 Jun 25 2012 05:54pm
Group: Members
Posts: 19,151
Joined: Jul 23 2006
Gold: 2,361.00
you've asked SWT questions multiple times here, and i dont think anyone has ever been able to help with SWT specific questions. you should ask somewhere else or google it.

and it should go without saying, you really oughtta mention the framework/library when it's not part of java by detault (lang, awt, swing, io, etc)

This post was edited by carteblanche on Jun 25 2012 05:56pm
Go Back To Java, Visual Basic, VBScript Topic List
Page 1 of 1