| Reply | « Previous Thread | Next Thread » |
|
Hi,
Do anyone know how to handle big jpg images (1280*960) so that they could be presented in a midlet. The problem is that the images requires so much memory that they can't be docoder to an Image object with Image.createImage method. One solution would be to extract thumbnail image from exif headers. Unfortunately at least images taken with Nokia 6680 don't contain thumbnail in exif headers. So the only solution seems to be to decode the byte presentation of the image and resize it before creating an Image object. Do anybody know any library for this or tips where to start? Br, Ilpo |
|
I'm working on something similar...My first question would be, how do you display images not in the midlet jar at all?
|
|
I use file connection api (jsr-75). Examples can be found at http://www.forum.nokia.com/info/sw.n..._v1_1.zip.html
|
|
Perhaps you can cut it.
|
|
you guys can always put the image on a "scroll pane" which will allow the user to scroll the image (left, right, up or down). I did this before and it works well. Let me know if you would like the code.
My email: johan@jdmeyer.co.za Johan |
|
Thanks for answer but the problem is that 1.3 M pixel jpg images require so much memory that they can't be creted with Image.createImage(byte[], int, int). The method throws OutOfMemory exception.
|
|
Join Date: Aug 2005
Posts: 67
Location: Venice, California
davidmanpearl
Offline
Regular Contributor
|
|
I am suffering from the same or very similar problem. Except, I don't get any exception. The thread just terminates when I attempt the Image.createImage() call. Does anyone have any resolution on this issue?
Is there any way to open an image file directly into a decimated lower resolution Image object as a thumbnail? Thank you so much for your help on this matter. - Sincerely, David Manpearl <dmanpearl_at_imatte_dot_com> |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|