Results 1 to 4 of 4

Thread: j2me code

  1. #1
    manojp476 is offline Member
    Join Date
    Apr 2010
    Posts
    4
    Rep Power
    0

    Default j2me code

    In the code given below (assuming all variables are properly defined) what is the function of getSnapshot() & repaint() ?


    Player_fld = Manager.createPlayer("capture://video");
    Player_fld.realize();
    VideoControl_fld = (VideoControl)Player_fld.getControl("VideoControl" );
    VideoControl_fld.initDisplayMode(1, this);
    VideoControl_fld.setDisplaySize(width, height-20);
    Player_fld.start();

    VideoControl_fld.setVisible(true);
    VideoControl_fld.getSnapshot(null);
    repaint();

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    What you asking is real mess-up. Those are another two methods, can you satisfied with that. I don't think, because same as your question doesn't have enough details.

    What is VideoControl_fld?

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    It's better if you can provide some guidelines to the OP, then he will learn a lot than present. It's not a good thing to post URL for other forums too.

  4. #4
    eyal is offline Member
    Join Date
    May 2010
    Posts
    7
    Rep Power
    0

    Default

    The means of these methods are:
    Java Code:
    VideoControl_fld.getSnapshot(null);
    - taking a picture, a single frame. and
    Java Code:
     repaint();
    - calls the canvas to paint it.
    You can find more details in the JSR-135 sample in the Sun's WTK.
    I Hope it helps you.

Similar Threads

  1. Need tic tac toe code in j2me
    By pacific112j in forum CLDC and MIDP
    Replies: 1
    Last Post: 01-22-2010, 10:08 PM
  2. Need tic tac toe code in j2me
    By pacific112j in forum New To Java
    Replies: 2
    Last Post: 01-22-2010, 10:08 PM
  3. Replies: 0
    Last Post: 04-22-2009, 01:30 PM
  4. J2me
    By Renjini in forum CLDC and MIDP
    Replies: 1
    Last Post: 08-14-2008, 10:58 AM
  5. J2me
    By kuttyniti@gmail.com in forum Sun Java Wireless Toolkit
    Replies: 0
    Last Post: 11-24-2007, 06:27 AM

Posting Permissions

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