CameraCapture method

[method icon] CameraCapture(DefaultPath$, ImageWidth, ImageHeight, Mode, ReturnFile)

>CameraCapture

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$)
See also:

BrandSplash, ClearDirectoryWatchEvent, CreateBookMark, DisplayScreen, EmptyClientCache, EnableUserPreferences, EnableWarnings, FireServiceEvent, ForceDefaultFont, ForceReadableTextMode, FTPGet, FTPPut, GetForms, GetServiceAttribute, GetServiceCookie, GetSpecialFolderPath, HTTPGet, OpenServiceWindow, PlaySoundFile, SetCharacterEncoding, SetDefaultIMEMode, SetDirectoryWatchEvent, SetPrinterFontName, SetPrinterFontSize, SetPrinterPort, SetServiceAttribute, SetServiceCaption, SetServiceConnection, SetServiceCookie, SetServiceUrl, SetThrottle, ShowSIP