Version: 1.0

Posted: 2003-01-14

Build Requirements: N/A

Runtime Requirements: Mac OS X Mac OS 10.1 or better

View Source Code:

Download Sample (“CapabilitiesSample.zip”, 41.3K)
Download Sample (“CapabilitiesSample.dmg”, 93.7K)



Description

READ ME - Camera Capabilities sample code June 27, 2002 Image Capture devices may support a number of special features, such as the ability to delete an image on the camera, or the ability to capture a new image, and these features can be accessed via the Image Capture APIs using the ICAObjectSendMessage function. Simply specify the desired feature (message) in the messageType field of the ICAObjectSendMessagePB parameter block. A list of these messages can be found in the ICACamera.h interface file as follows: kICAMessageCameraCaptureNewImage = 'ccni', kICAMessageCameraDeleteOne = 'del1', kICAMessageCameraDeleteAll = 'dela', kICAMessageCameraSyncClock = 'sclk', kICAMessageCameraUploadData = 'load' To determine whether or not your device supports any of the above special features, you must obtain the camera dictionary for your device, and examine the camera capabilities in this dictionary. The camera dictionary can be gotten using the ICACopyObjectPropertyDictionary function. The camera capabilities can be retrieved from the camera dictionary using the 'capa' key. What is returned is an array containing all the device capabilities. If any of the above message ID values are listed in the camera capabilities they are supported by the device. USING THE APPLICATION Connect an Image Capture device to your Mac and launch the application (the application currently will not re-scan for devices after it is launched). In the window you'll see a list of supported capabilities for the device. Click on any of these, then press the "Issue Command" button to issue the command to the device via the ICAObjectSendMessage function. REQUIREMENTS Mac OS 10.1 or better Requirements: Mac OS 10.1 or better Keywords: Image Capture camera capabilities

Document Revision History

Date Notes
2003-01-14Shows how to detect Image Capture device capabilities and send messages to devices with ICAObjectSendMessage.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.