This is an answer to mshelwa. The image that is shown in the MIDlet is the one placed in the "camera" folder named "camera.xxx", being xxx the format of the image (png, jpg or whatever).
You will have noticed you have a camera.bmp file, a camera.png file and a camera.jpg file. if you call getSnapshot("null") or getSnapshot("encoding=png"), you will get camera.png. If you call getSnapshot("encoding=bmp"), you will get camera.bmp. The emulator just passes the right image to the application, it does not transform the format (nor the size, I believe) of the image. You just get what you place in the folder.
On the other hand, the viewfinder.jpg file is the image you see when the camera is on, before the use of get snapshot.
What I do is place the image I want to use in the folder and rename it as "camera.png". Yes, if I want to change the image I have to rename all the files...
If anyone knows a better way of doing this, please let me know.
By the way, I would also be interested in a 640x480 image in the real terminal (3650 and also 6600), so, Nokia people or whoever can, please, hear our call...![]()

Reply With Quote


