CameraCapture method
CameraCapture(DefaultPath$, ImageWidth, ImageHeight, Mode, ReturnFile)
CameraCapture
The CameraCapture(DefaultPath, ImageWidth, ImageHeight, Mode, ReturnFile) method allows an image to be taken using the built in camera of a Windows Mobile based device.
On other Windows platforms or deivces without a built in camera this method has no effect.
Arguments
Argument | Description |
---|---|
DefaultPath$ | The path where the camera dialog will store the image. If this is blank a sensible default is provided. |
ImageWidth | Width of the returned image. If this is 0 the camera dialog will provide its own default. |
ImageHeight | Height of the returned image. If this is 0 the camera dialog will provide its own default. |
Mode | Selects whether a still image or video is to be captured. See KCML_CAMERA_CAPTURE_MODE_ENUM for details. |
ReturnFile | The path to the captured image. |
Returns
TRUE if successful. Returns FALSE if the user cancels the camera dialog or if there is no camera present.
REM Capture a still image of the default size in the default location Client.CameraCapture("", 0, 0, _CAMERACAPTURE_MODE_STILL, BYREF Picture$)