windows mobile - Image Size With J2ME on an HTC Touch2 -


I have to find out that there is a limit on the use of the camera in the J2MM implementation on HTC Touch 2. The original camera is 3mp, but it shows that the quality is significantly reduced when accessed via J2MA, in fact this is the only size and format capable of returning the .getSnapshot () method to 240x320 pixels Jpeg . I am trying to confirm that this is a limitation if J2me implementation and not my coding. I've tried some things to hear and examples:

  Private zero show cameramos (try {mPlayer = Manager.createPlayer ("capture: // video"); // mPlayer = Manager.createPlayer ("Capture: // Video Encoding = RGB 565 and width = 640 and height = 480"); MPlayer.realize (); MVideoControl = (videocontrol) mPlayer.getControl ("VideoControl"); Canvas = new camera canvas (this, mVideoControl); Canvas.addCommand (mBackCommand); Canvas.addCommand (mCaptureCommand); Canvas.setCommandListener (this); MDisplay.setCurrent (canvas); MPlayer.start (); } Hold (Exception Pre) {}} Public Zero Capture () {try {Get image byte [] raw = mVideoControl.getSnapshot ("encoding = JPG and quality = 100 and width = 640 and height = 480"); // byte [] raw = mVideoControl.getSnapshot ("encoding = PNG and quality = 100 and width = // 640 and height = 480"); // byte [] raw = mVideoControl.getSnapshot (faucet); Image image = image. Creation image (raw, 0, raw.label); // image thumb = create thumbnail (image); // Keep it in main form if (mMainForm.size ()> 0 & amp; amp; amp; amp; mmform.get (0) for example StringItem) mMainForm.delete (0); MMainForm.append (image);  

If someone can help, it will be appreciated.

I have derived words from many sources that there is actually a limit on the use of the camera, by the operating system Javm's witch has been given space.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -