Size of Bitmap in Camera

Login to reply to this topic.
Sat, 2005-08-06 07:28
Joined: 2005-07-14
Forum posts: 55
Well I got camera to work for me after somet struggle. I can see the view through the camera. But the View that is created is a bit smaller in Height. The width of bitmap is equal to the width of Device.
I define the variable called iLandscape  = TSize(Rect().Width, Rect().Height)
then to the StartViewFinderBitmapL() function i passed iLandscape as arguement xpecting that the image created on screen will be of the size of screen.
How can I make it equal to the size of my Screen??
Has anyone faced this problem b4 and how did u solve it???

Wed, 2005-08-10 07:49
Joined: 2004-10-18
Forum posts: 40
Re: Size of Bitmap in Camera
No matter what size you request from CCamera, the view finder aspect ratio is retained to be the same as the aspect ratio of camera sensor (i.e. 4:3).
Thu, 2005-09-29 12:25
Joined: 2005-08-03
Forum posts: 10
Re: Size of Bitmap in Camera
Hi, I would like to set my Camera directly under the Status Pane. Does anybody know, why my StartViewFinderBitmapsL Method doesn't work?

Quote
TRect rect = TRect(0, 45, 176, 177);
TSize size = TSize(rect.Width(), rect.Height());
TRAPD(err, iCamera->StartViewFinderBitmapsL(size, rect));

The Camera is displayed when I just start the ViewFinder without the second parameter rect.
Mon, 2005-10-03 07:04
Joined: 2004-10-18
Forum posts: 40
Re: Size of Bitmap in Camera
The TRect parameter given to StartViewFinderBitmapsL() is a clipping rectangle. Some devices might support view finder clipping but at least Nokia devices do not support it. This can be found out by checking TCameraInfo's TOption bitfield. If EViewFinderClippingSupported is not set, clipping is not supported.
  • Login to reply to this topic.