Starts the camera’s preview mode. For HTC cameras, BeginPreview starts the IA Camera Wizard.

Camera objects
objectname.BeginPreview ( previewwindow )
Argument  | 
Description  | 
|---|---|
objectname  | 
The name of the camera object that you want to inquire about  | 
previewwindow  | 
A graphic object such as a window or picture control that serves as the preview window  | 
Integer. Returns 1 for success, and one of the following negative values if an error occurs:
The graphic control specified as an argument to the BeginPreview function is used only if the device supports preview in a specified control. Some devices preview directly to the physical screen.
The following example specifies that the image is previewed in the p_preview picture control on the window w_main:
li_rtn = g_myCamera.BeginPreview(w_main.p_preview)
| Copyright © 2004. Sybase Inc. All rights reserved. | 
 
 | 
|