camSnapshot (Function) |
Top Previous Next |
This function takes a snapshot picture from the camera module. The picture taken is in the industry standard JPEG format and four different resolutions are available.
The following resolutions are available:
The recommended resolution is 320 x 240 pixels as it represents a good balance between buffer size, quality, and resolution.
Input: res : INT The resolution of the snapshot picture:
pic : PTR The buffer for the picture snapshot. The picture returned is in the standard JPEG-compressed format.
picsize : DINT The size of the picture snapshot buffer.
Recommended buffer sizes:
Note: the actual picture size depends on the level of JPEG compression possible on the actual picture. If the buffer specified in too small for the actual picture. an error code will be returned (see below).
Returns: DINT The size of the picture snapshot or:
Declaration: FUNCTION camSnapshot : DINT;
Example: INCLUDE rtcu.inc |