×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    16

    camera zoom and flash control for N70

    Hi all,

    I am making an application on N70 that accesses the camera and capture image. I am having three problems.

    1. I want to save the captured image in my memory card, but i am not able to do it. The code that i am using is:

    byte[] bmpImage = videoControl.getSnapshot("encoding=bmp");
    FileConnection f=(FileConnection)Connector.open(" file:///E:/Images/Image001.bmp",Connector.WRITE);
    DataOutputStream dout=f.openDataOutputStream();
    dout.write(bmpImage,0,bmpImage.length-1);
    dout.flush();
    dout.close();
    f.close();

    I have also tried it with jpeg but still it is not working.

    2. I want to use the zoom of the camera can anyone help me in that?

    3. And finally how i can use the flash of the camera.

    Please reply as soon as possible.

  2. #2
    Registered User
    Join Date
    Mar 2006
    Posts
    8

    Re: camera zoom and flash control for N70

    Hi Waqas16,

    I've used the following code successfully:

    Code:
          byte[] raw = VideoControl.getSnapshot("encoding=jpeg&width=640&height=480");
    	  try {
    		OutputStream out;
    		FileConnection fc = (FileConnection) Connector.open(fileName, Connector.READ_WRITE);
    
    		if (fc.exists()) {
    			out = fc.openOutputStream();
    		} else {
    			fc.create();
    			out = fc.openOutputStream();
    		}
    		out.write(raw);
    		out.close();
    		fc.close();
    	} catch (Exception ex) {
    		...
    	}
    Regarding 2.) and 3.): As far as I know this is not possible for the N70 because this is device specific. Please let me know if you find a solution.

    Happy coding.

  3. #3
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: camera zoom and flash control for N70

    The flash/zoom/focus controls are not available in MMAPI. They are included in AMMS (Advanced Multimedia Supplements JSR-234) which is not yet implemented on Nokia devices.

    Hartti

Similar Threads

  1. 6682,6620,6600 - Zoom Control, Flash Control, Brightness Control
    By nagkumar in forum Mobile Java General
    Replies: 3
    Last Post: 2006-02-24, 21:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×