08-06-2010 12:51 PM
I am trying to load a bitmap and I am getting an IllegalArgumentException in JDE 5.0.0 ( haven't compiled against previous JDEs ). The file exists in the project, in fact, it is even utilized for the Application Icon rollover - which works spendidly. I created the image in Adobe Illustrator and exported as a 100x75 pixel PNG-24. I produced another PNG this way that exists in the project that loads (for the unrolled over). I tried to produce another image and load it, with the previous two images (the one that works and the one that doesn't work) in the project and it fails with this dump, too.
Any restrictions on including images in projects?
The simple code:
final Bitmap bm1 = Bitmap.getBitmapResource("cameraRollover.png");
The call stack:
Thread [StarfaceRecoApp(230)id=321742848] (Suspended (exception IllegalArgumentException)) Resource.getIconOffset(byte, int) line: 158 Resource.getIconBytes(byte, int) line: 188 StarfaceRecoAppRIMResources(Resource).findResource
(String) line: 63 StarfaceRecoAppRIMResources(Resource).getResource( String) line: 103 Bitmap.getBitmapResource(String, String) line: 2333 Bitmap.getBitmapResource(String) line: 2359 MainHubScreen.<init>(StarfaceApp$StarfaceRecoApp) line: 30 StarfaceApp$StarfaceRecoApp.<init>() line: 187 StarfaceApp$StarfaceRecoApp.main(String) line: 27
Solved! Go to Solution.