GWSOFT.co.uk  

Site by Graham Wharton 
November 21st 2008 05:12:07 PM 



NOTE : This project is not currently in development and is totally unsupported. These pages are here for information only.

setCurrentPicture

Declaration

extern "C" status_t setCurrentPicture(int picturenumber);

Description

This function must be implemented in the plugin. This function accepts a single int which should be used to set working picture number. i.e after setting this number, all image operations will be performed on that image until this function is called again. Note : picture numbers are numbered from 0. To select the first image in the camera, this function will be passed 0. It will depend very much on the camera itself, as to whether you call the camera in this function or just keep a track of the picture number internally in the plugin.

The function returns a status_t error code to indicate the success of the operation. Any of the status_t error codes can be used, but it is suggested that you stick to using B_NO_ERROR for success and B_ERROR for failure.

Example Implementation - Kodak DC210 Plugin

status_t setCurrentPicture(int picturenum) { currentpicturenumber = picturenum; return(B_NO_ERROR); }
BDCP Developers Home Page