Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User neelesh_a1's Avatar
    Join Date
    Aug 2009
    Posts
    25
    Hi,

    I need to get an Image of 320x480.

    When I take a grab a picture using CCamera::CaptureImage(), I get an Image of 1280x960.

    SO after getting the bitmap, I resize it using CBitmapScaler::Scale()

    Everything works fine this way but the CBitmapScaler::Scale() takes 3 secs to execute. (Here I am not doing anything. I am simply calling the scale method of the CBitmapScaler giving the new height and width as parameters)

    Is it possible to set some properties of CCamera so that the CaptureImage function itself returns a bitmap of 320x240 instead of 1280x960

    OR

    Can someone tell me how can I speed up the CBitmapScaler::Scale()


    I think the former will be the better solution if possible.

    Thanks and Regards,

    Neelesh

  2. #2
    Regular Contributor VaradiZsolt's Avatar
    Join Date
    May 2008
    Location
    Budapest, Hungary
    Posts
    84
    Quote Originally Posted by neelesh_a1 View Post
    Is it possible to set some properties of CCamera so that the CaptureImage function itself returns a bitmap of 320x240 instead of 1280x960
    See CCamera::PrepareImageCaptureL(), CCamera::EnumerateCaptureSizes(), they seem relevant to your problem.

  3. #3
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,236
    Yes. Check the PrepareImageCaptureL() and pass the aSizeIndex. Use EnumerateCaptureSizes which will take TSize as a reference and will pass it back different sizes based on the aSizeIndex parameter.

    Before checking the following example, read for PrepareImageCaptureL() and EnumerateCaptureSizes() in the SDK help, thoroughly.

    Example: http://developer.symbian.org/main/do...mediaEx.Camera
    Nokia Developer Wiki Moderation team

Similar Threads

  1. how to change the background of the application in 3rd edition?????????
    By srikanth_yk in forum Symbian User Interface
    Replies: 4
    Last Post: 2007-12-27, 07:56
  2. change resolution mobile java games?
    By mrenofan in forum Mobile Java Games
    Replies: 5
    Last Post: 2007-11-15, 11:13
  3. How to change system layouts to landscape mode on OS 9.2?
    By Mozart2007 in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-11-13, 08:57
  4. SVG Icon and display resolution
    By muntain in forum Symbian C++
    Replies: 8
    Last Post: 2007-08-31, 10:57

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