×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    7

    Question Image size in Camera midlet

    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
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: Image size in Camera midlet

    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
    (Champion of the Month -Aug'13)
    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
  •  
×