"Ben Combee" <[EMAIL PROTECTED]> a �crit dans le message de
news:[EMAIL PROTECTED]
> The Zire 72 uses an overlay mechanism to directly map memory filled by the
> camera sensor over part of the screen -- the LCD controller can fetch a
> rectangle of the screen from a different part of memory, avoiding the need
> to double-buffering. When the camera is disabled, this overlay is turned
> off, and you're left with what was under the overlay to start.
>
How can I take a snapshot the the image on the screen before turning off the
preview and put it on the screen after the preview is off.
I tryed to copy the current screen but I only copy what is under the
overlay.
Here is a piece of code I tryed:
winhOffScreen=WinCreateOffscreenWindow(mrtgPreviewRectangle.extent.x,
mrtgPreviewRectangle.extent.y, screenFormat, &errError);
if (winhOffScreen)
{
rtgOffScreenRectangle=mrtgPreviewRectangle;
rtgOffScreenRectangle.topLeft.x=0;
rtgOffScreenRectangle.topLeft.y=0;
WinCopyRectangle(NULL,winhOffScreen,&mrtgPreviewRectangle,0,0,winPaint);
}
StopCameraPreview(guintCamLibRefNum);
if (winhOffScreen)
{
WinCopyRectangle(winhOffScreen,NULL,&rtgOffScreenRectangle,mrtgPreviewRectan
gle.topLeft.x,mrtgPreviewRectangle.topLeft.y, winPaint);
WinDeleteWindow(winhOffScreen,false);
}
Thanks
--
Regis St-Gelais
www.laubrass.com
--
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/