Discussion Board

Results 1 to 3 of 3
  1. #1
    Hi sir,
    i am vinay, i just want to develop an application in j2me for capturing images from time to time without manually clicking...

    Application should automatically take pictures from time to time i.e after activating camera for every 2 seconds or 5 seconds it[application] should take pictures....

    For this what should i do....if there is any code or link please post that to me sir...

    If i can get that, half of my application will be completed soon please help me sir...

    Thank you....sir

  2. #2
    Nokia Developer Champion rahulvala's Avatar
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,293
    You will get by below:

    We can take picture using MMPI

    Capturing an Image

    Once the camera video is shown on the device, capturing an image is easy. All you need to do is call VideoControl's getSnapshot() method. You'll need to pass an image type, or null for the default type, PNG. You can find out ahead of time the image types that are supported. The video.snapshot.encodings system property contains a whitespace-delimited list. The Nokia 3650 supports PNG, JPEG and BMP.

    The getSnapshot() method returns an array of bytes, which is the image data in the format you requested. What you do at this point is up to you: you might save the bytes in a record store, send them to a server, or create an Image from them so you can show the user the picture just taken :

    Code is here :

    Code:
    byte[] raw = mVideoControl.getSnapshot(null);
    Image image = Image.createImage(raw, 0, raw.length);

    For more detail go to the link: jpeg

    Best regards,

  3. #3
    Regular Contributor dinanath.d's Avatar
    Join Date
    Oct 2007
    Location
    Pune
    Posts
    189
    Hello,

    Here is an example for you.
    Regards,
    Dinanath


    It's a matter of attitude.

Similar Threads

  1. Getting Camera Image Capture Callback
    By swapnilb83 in forum Symbian C++
    Replies: 4
    Last Post: 2010-08-05, 19:33
  2. image capture event using symbian
    By rajivmodh in forum Symbian C++
    Replies: 14
    Last Post: 2009-12-18, 05:01
  3. [moved] where to start...??
    By srinivasreddy501 in forum General Development Questions
    Replies: 6
    Last Post: 2009-11-23, 12:48
  4. 5230 Xpress Music can't do video / image capture
    By lkihk in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2009-11-18, 11:09
  5. Replies: 1
    Last Post: 2008-02-22, 06:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved