Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User ad2apps's Avatar
    Join Date
    Nov 2011
    Posts
    7
    Hi all

    Using the camera midlet code and extending it to other things. The problem is the viewing of the captured image .
    standard code-
    imageData = videoControl.getSnapshot(null);
    capturedImage = Image.createImage(imageData, 0, imageData.length);

    then on the captured image form -

    Item p = (Item)capturedImage;
    THe problem here is that the image is clipped to fit into the item on the form. I have also tried using the imageitem as well but I get no difference. Therefore the question is how can you scale down the image so that it fits within the item like it does when the camera views before the snapshot is taken ?

  2. #2
    Nokia Developer Champion im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    Quote Originally Posted by ad2apps View Post
    Hi all

    Using the camera midlet code and extending it to other things. The problem is the viewing of the captured image .
    standard code-
    imageData = videoControl.getSnapshot(null);
    capturedImage = Image.createImage(imageData, 0, imageData.length);

    then on the captured image form -

    Item p = (Item)capturedImage;
    THe problem here is that the image is clipped to fit into the item on the form. I have also tried using the imageitem as well but I get no difference. Therefore the question is how can you scale down the image so that it fits within the item like it does when the camera views before the snapshot is taken ?
    Try to reszie the image before you add to form:

    http://developers.sun.com/mobility/r..._resizing.html
    thanks,
    ~Amitabh
    (Poster of the Month -Dec'12)
    Follow me on my blog for Innovative Mobile Apps

Similar Threads

  1. Replies: 8
    Last Post: 2012-02-16, 09:40
  2. QtMobility & QML Camera : how to force camera size to parent size ?
    By telequid in forum [Archived] Qt Mobility Project
    Replies: 3
    Last Post: 2011-10-11, 10:38
  3. Replies: 0
    Last Post: 2010-06-14, 13:02
  4. How to restrict Camera to take Image of particular size.
    By purnima.attarsingh in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2010-02-08, 06:49
  5. Problems with Camera. Camera run on java class and it failed on midlet.
    By Kaisser in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-04-17, 10:23

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