|
Creating a form for photo data collection
If you are not familiar with building and distributing a Pendragon Form,
you may wish to review the
Quick Start Guide for an overview.
On your form, you will need to include:
• A Custom Control field
• A script in the Custom Control field that attaches the new photo to an
Image field in your form
• An Image field to store photos
The Custom Control Field
To add the Camera Control to your form, create a new field on your form
and select the Custom Control field type. In the
Component Name box, select Zire
JPEG Camera or SONY Camera, depending on your handheld.

Camera Custom Control Parameters
Zire 72 Custom Control Parameters
The Camera Control has four adjustable parameters that apply only to
the Zire 72: CameraKey, ShutterKey, ShutterTurnsOffCamera, and
AllowLargeImages.
CameraKey
The CameraKey parameter sets the key code that will power the camera on
and off. By default, this parameter is zero, and the camera is turned on
and off using the Voice Memo button.
ShutterKey
The ShutterKey parameter sets the key code that acts as a shutter
button. By default, this parameter is zero and the 5-way navigation
button is used as the shutter button.
The following table contains a list of key codes that might commonly be
used for controlling the camera.
|
Key Code |
Button |
|
516
through 519 |
Hardware application
buttons one through four |
|
532 |
Voice Memo button |
|
1280 |
Clock Silkscreen
button |
|
1282 |
Brightness Silkscreen
button |
|
266 |
Find Silkscreen
button |
|
267 |
Calculator/HotSync
(Star) Silkscreen buton |
ShutterTurnsOffCamera
Normally, pressing the shutter button captures an image, but does not
deactivate the camera and viewfinder. The ShutterTurnsOffCamera option
can be set to Y to turn off the camera and the viewfinder when the
shutter button is pressed.
AllowLargeImages
The Zire 72 has a maximum image resolution of 1280x960 pixels. To
enable the camera control to capture images at this resolution instead
of 640x480, set the AllowLargeImages parameter to Y.
Sony Camera Custom Control Parameters
The Camera Control has four adjustable parameters: CameraKey, ShutterKey,
ShutterTurnsOffCamera, and ImageSize.
CameraKey
The CameraKey parameter sets the key code that will power the camera on
and off. By default, this parameter is 516, and the camera is turned on
and off using the first hardware application button (the DateBook
button).
ShutterKey
The ShutterKey parameter sets the key code that acts as a
shutter button. By default, this parameter is zero and the standard
camera shutter button is used to capture the exposure.
The following table contains a list of key codes that might commonly be
used for controlling the camera.
|
Key Code |
Button |
|
516
through 519 |
Hardware application
buttons one through four |
|
5888 |
Jog Up |
|
5889 |
Jog Down |
|
5893 |
Jog Push |
|
5894 |
Jog Release |
|
5895 |
Jog Back |
|
5896 |
Jog Left |
|
5897 |
Jog Right |
|
5900 |
Camera Capture button |
|
5901 |
Voice Record button |
|
5927 |
Camera Cover Open |
ShutterTurnsOffCamera
Normally, pressing the shutter button captures an image, but does not
deactivate the camera and viewfinder. The ShutterTurnsOffCamera option
can be set to Y to turn off the camera and the viewfinder when the
shutter button is pressed.
ImageSize
The Clie control normally captures images at 640x480 resolution. It is
possible to have the camera capture images at 320x240 resolution by
setting the ImageSize parameter to 320x240.
|