d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Java Imagedata Question
Add Reply New Topic New Poll
Member
Posts: 8,635
Joined: Dec 28 2007
Gold: 87.00
Jun 25 2012 12:22pm
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.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jun 25 2012 05:54pm
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 Programming & Development Topic List
Add Reply New Topic New Poll