Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User j2me@com's Avatar
    Join Date
    Jul 2007
    Posts
    13
    Hi,
    I tried capturing the image using the MMAPI, following is the code written for it,
    try
    {
    p = Manager.createPlayer("capture://video");
    p.realize();
    if ((vc = (VideoControl)p.getControl("VideoControl")) != null)
    {
    vc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
    vc.setDisplayLocation(0, 0);
    vc.setDisplaySize(width , height);
    vc.setVisible(true);
    }
    p.start();
    }catch(Exception e)
    {
    //System.out.println("Comming here in media");
    }

    after pressing capture command i have written

    byte[] xyz = vc.getSnapshot(null);
    Image image = Image.createImage(xyz, 0, xyz.length);


    Capturing works fine but problem is when i display the captured image it displays the image which is not captured at the insance when i clicked capture command. Like the captured picture will be of the previous frames.

    Regds,
    J2me@com

  2. #2
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Hi,

    "Like the captured picture will be of the previous frames."
    Are you sure you have all the instances/variables at the right scope?
    Juarez Alvares Barbosa Junior - Brazil

  3. #3
    Registered User j2me@com's Avatar
    Join Date
    Jul 2007
    Posts
    13
    Well capturing is not a problem. To get the desire picture i need to wait for few seconds and press "Snap".

    Regds,
    j2me@com

Similar Threads

  1. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  2. Camera API on Symbian 9.1 (Nokia N80)
    By srigans1 in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2007-10-20, 05:31
  3. Camera problem
    By newbie2201 in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2006-05-17, 09:29
  4. N-90 Mechanical Problem Turning camera Module
    By ALTheo in forum General Development Questions
    Replies: 1
    Last Post: 2006-04-06, 18:41
  5. Replies: 0
    Last Post: 2003-11-18, 21:41

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