problem in image capture

Login to reply to this topic.
Wed, 2007-11-07 13:00
Joined: 2007-10-10
Forum posts: 14

Hi All,

I want to capture an image using P900, in the following sequence:

1) Start the view finder using menu.
2) Then Capture the Image using menu.

But, I have a code provided by sony ericsson only but it works in the following sequence:

1) Start View finder and capture.

But not the above way, and surprisingly it is working on emulator in both the ways:

What I did is , I started the view finder first :

1) TRect screenRect = PrepareViewFinder();

TAny* customInterface = iCamera->CustomInterface(SonyEricsson::KCameraExtensionsUid);
if(customInterface)
{
SonyEricsson::MCameraExtensions* phoneCamera = static_cast(customInterface);
phoneCamera->StartViewFinderDirectL(iCoeEnv->WsSession(),*iCoeEnv->ScreenDevice(),*iAppView->DrawableWindow(),screenRect, *this);
}

Then I call Capture Image from menu But it fails in ImageReady function CFbsBitmap returns Null.

But if I follow the sequence of View Finder start and instantly capture the image it works.

I am doing all PowerOn and Reserve complete but of no avail.

Pls help me out.

Thanks And Regards
Kumar.

  • Login to reply to this topic.