GWSOFT.co.uk  

Site by Graham Wharton 
November 21st 2008 06:29:04 PM 



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

getImageSize

Declaration

extern "C" status_t getImageSize(int &size);

Description

This function is entirely optional. 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. The function is passed an int which you must fill with the size of the current image.

Example Implementation - Kodak DC210 Plugin

status_t getImageSize(int &size) { //With this camera, details of all the files can be obtained with one command //This is done only when the list of images changes, or when the camera is opened. if (haveigotfilenames == false) if (getfiledata() < B_NO_ERROR) return(B_ERROR); //The sizes are stored in a STL map of image numbers to sizes. //The required size is found. map<int, int>::iterator psize; psize = imagesizes.find(currentpicturenumber); size = psize->second; return(B_NO_ERROR); }
BDCP Developers Home Page