I am trying to capture images on a tall Nokia phone (N95). The phone’s internal camera is very good (4 megapixels), but in j2me it seems to me that I can get a maximum of 1360x1020 images. I mainly used this example http://developers.sun.com/mobility/midp/articles/picture/
What I did started with 640x480 and increased the width and height by 80 and 60, respectively, until it worked out. Line of code:
jpg = mVideoControl.getSnapshot ("encoding = jpeg & quality = 100 & width =" + width + "& height =" + height);
So, two questions: 1. The phone throws an exception when receiving images larger than 1360x1020. 2. Higher resolution images just look like smoothed versions of smaller ones. For example. When I take a 640x480 image and enlarge it in Photoshop, I can’t tell the difference between this and what is supposedly 1360x1020.
Is this a j2me limitation on the phone? If anyone knows a way to get a higher resolution from a j2me application and / or how to access their own camera from another application?
source
share