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 10:52 PM
Do you think you can put one of them here for download?
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 10:06 PM
The box is to the right of the message box.