×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    CCamera ViewFrame Size does not fit to the screen

    hi,
    I am using the function like this.
    Code:
    CCamera::StartViewFinderBitmapsL(TSize aSize);
    is not following the given aSize. The view frame is just showing a landscape view though my phone is always in portrait mode... so the lower part is showing white.. the captured image is always landscape as well.

    Do i need to do something to fit the view frame to the whole screen.. I have removed the statuspane from my application already..

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,567

    Re: CCamera ViewFrame Size does not fit to the screen

    Actually it is
    Code:
    CCamera::StartViewFinderBitmapsL(TSize &aSize);
    exactly because
    Quote Originally Posted by SDK Help
    TSize &aSize On return, the size used.
    So the API will not take arbitrary-sized viewfinder images for you but it will pick a size close to your requirement and tell it to you. Since it is pretty close to the requested size, a little bit of scaling (with DrawBitmap for example) probably will not affect the visual quality.

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    Re: CCamera ViewFrame Size does not fit to the screen

    Yes, I understood. I saw this thing too. but overlooked...may be... So how can i set the size of the view frame so that it fits to the screen size or to any size that is acceptable by the system ?

  4. #4
    Registered User
    Join Date
    Dec 2009
    Posts
    339

    Re: CCamera ViewFrame Size does not fit to the screen

    Quote Originally Posted by Md. Kayesh View Post
    Yes, I understood. I saw this thing too. but overlooked...may be... So how can i set the size of the view frame so that it fits to the screen size or to any size that is acceptable by the system ?
    One way could be, using DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice), specify the aDestRect equals the screen size.


    EDIT: you can also check maximum size of frame supported by camera using CameraInfo(TCameraInfo &aInfo), on returning the method you can check it from TCameraInfo.
    Last edited by slinx; 2012-01-26 at 05:15.

Similar Threads

  1. App screen size 1/4th of Main screen
    By farhanahmad123 in forum [Archived] Qt Quick
    Replies: 1
    Last Post: 2011-07-14, 06:58
  2. Issue Camera with width screen size bigger than height screen size
    By langtu_yka in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2010-11-16, 08:56
  3. Replies: 0
    Last Post: 2008-03-19, 12:07
  4. Ccamera rotation and N80 picture size
    By ynho in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-12-29, 01:06

Posting Permissions

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