|
API Guide Home (Online version only) |
![]() |
Notes: The calling application should always load this library with SysLibLoad() before use, even if it is already open by another application(ie, SysLibFind() returns a valid refnum). When the application is done with the library, it should be unloaded with SysLibRemove(). We do this because there is no good way to synchronize loading and unloading of libraries among multiple applications. It also greatly simplifies internal synchronization.
Definition in file CameraLib.h.
Include dependency graph for CameraLib.h:

Go to the source code of this file.
Returns a full image (640X480) in the specified color space. This function is not really necessary, since CameraLibPreview could be used instead. This function might be deprecated in the future.
| refnum,: | IN: Library reference number. | |
| buffer,: | IN: Buffer to hold the image. | |
| format,: | IN: Format of the image you want returned. |
| Err | Error code. |
Closes the Camera library. Library should always be unloaded with SysLibRemove() after CameraLibClose() is called. See note at top of file.
| refnum,: | IN: Library reference number. |
| Err | Error code. |
Standard library open routine. Library should always be loaded with SysLibLoad()(not SysLibFind()) before calling CameraLibOpen(). See note at top of file.
| refnum,: | IN: Library reference number. |
| Err | Error code. |
Returns an image using the window width and height (pixels) you specify. If the width and height are less the dimensions of a full camera image (640x480) a simple pixel sub-sampling algorithm is used to decimate the image.
| refnum,: | IN: Library reference number. | |
| buffer,: | IN: Buffer to hold the image. | |
| format,: | IN: Format of the image you want returned. | |
| width,: | IN: The width in pixels of the image you want captured. | |
| height,: | IN: The height in pixels of the image you want captured. |
| Err | Error code. |
Puts the camera library in preview mode and establishes a preview window. While in this mode, QQVGA images are continuously copied to the LCD screen of the device. Call CameraLibPreviewStop to exit preview mode.
| refnum,: | IN: Library reference number. | |
| windowH,: | IN: Window handle of the PalmOS window that the image is to be displayed in. | |
| x,: | IN: Window-relative coordinate of the left edge of the image. | |
| y,: | IN: Window-relative coordinate of the top edge of the image. |
| Err | Error code. |
Stops preview mode.
| refnum,: | IN: Library reference number. |
| Err | Error code. |
Gets the current setting of the camera register.
| refnum,: | IN: Library reference number. | |
| reg,: | IN: Register number. | |
| valueP,: | OUT: Pointer to where register data will be stored. |
| Err | Error code. |
Sets the value of the camera register.
| refnum,: | IN: Library reference number. | |
| reg,: | IN: Register number. | |
| value,: | IN: The data value you want to set the register to. |
| Err | Error code. |
Standard library sleep function.
| refnum,: | IN: Library reference number. |
| Err | Error code. |
Standard library wake function.
| refnum,: | IN: Library reference number. |
| Err | Error code. |
| Top | Palm Developer Network © 2004-2008, Palm, Inc. All rights reserved. Generated on Fri Jun 13 10:06:55 2008 for Palm API Guide |