12-28-2010 01:08 AM - edited 12-28-2010 01:48 AM
I am able to draw EncodedImage. But when i try to .getBitmap, I will get exception for some of the images. I want to encode the image and log the errors when I tried to open them.
The problem now is that I can convert these images to bitmap. Or shall I try decoding it and if I can't to check for errors using event log?
12-28-2010 02:27 AM
Ok, unfortunately I don't know exactly why you get the exception (since the normal causes don't apply to your situation). As long as you don't catch the exception then it will show up in the event log.
Can you notice any specific difference in the images that cause the error and those that don't? File size, image size, program that creates them, alpha/no-alpha, etc. ?
12-28-2010 02:38 AM
When I try to go to sd card and open the image one by one, I notice that some images doesn't have a preview available. These are the ones I cant encode and change to bitmap. How do I log the event for these type of errors? Can i i use a EventLogger?
12-28-2010 07:18 AM
12-28-2010 08:26 AM
The okay ones is 125X94 while the one that's giving problem is 225X225.
12-28-2010 10:52 PM
Do you think you can put one of them here for download?
12-29-2010 06:30 AM - edited 12-29-2010 08:29 AM
How do I do put it up for download?
Is there any other methods I can use to decode an image file instaead of using image.getbitmap?
12-29-2010 08:55 PM
The attachments box (it's next to the message box when you make a post).
There is no other methods. Your options are getBitmap or to make a Bitmap, get a Graphics object for it, then draw the EncodedImage to it.
12-29-2010 09:44 PM
I dont see any attachment box. All i see is the insert/edit image(a tree). And i post my image on it.
12-29-2010 10:06 PM
The box is to the right of the message box.