CallLogEntry object  CameraImageAttributes object

Chapter 2: System Object Properties, Events, and Functions

Camera object

A Camera object provides an interface to camera devices such as the HP Photosmart and VEO 130S SDIO cameras. You can preview an image in any visual control and save it as a JPEG file.

Properties

Camera property

Datatype

Description

CameraName

String

Read-only name for the camera set with a specifier in the CameraType property.

CameraType

Integer

Specifier for the type of camera.

ConfigParams

String

Not currently implemented. Reserved for future use.

DeviceHandle

UnsignedLong

Read-only file handle for the serial camera device.

DriverName

String

Read-only value optionally defined by the camera manufacturer.

DriverVersion

String

Read-only value optionally defined by the camera manufacturer.

Folder

String

Sets the folder for storing the snapped images. Required for HTC cameras.

Port

String

Sets the port for a camera. Required for the HP Photosmart and VEO 130S cameras.

Events

Camera event

Occurs

Constructor

When the object is created

Destructor

When the object is destroyed

Snapped

When an image has been captured by a digital camera device

Functions

Camera function

Datatype returned

Description

BeginPreview

Integer

Starts up the camera device’s preview mode using the object of type GraphicObject that you specify in the function’s only argument. For the HTC camera, launches the IA Camera Wizard.

CaptureImage

Integer

Saves the image as a file that you specify in this function’s only argument.

Close

Integer

Closes a Camera communication channel if one is open and deactivates the data handlers.

EndPreview

Integer

Ends the camera device’s preview mode.

GetAllowedImageAttributes

Integer

Passes the set of allowed image attributes for the camera device to the CameraImageAttributes structure object that you specify in the function’s only argument.

GetOption

Integer

Gets the actual value of a device option that you specify in the function’s only argument.

HasOption

Boolean

Queries the device to determine its support for an option that you specify in a CameraOption enumerated value.

IsReadyToCapture

Boolean

Queries whether the device is set to capture an image to a file.

Open

Integer

Initializes data handlers and opens a communication channel to the camera device.

SetCaptureImageAttributes

Integer

Sets the image attributes from a CameraImageAttributes structure object that you specify in the function’s only argument.

SetOption

Integer

Sets an option to a specific value.

SetPreviewImageAttributes

Integer

Sets the image attributes for preview mode.





Copyright © 2004. Sybase Inc. All rights reserved. CameraImageAttributes object

View this book as PDF