#ifndef __RIMAGEFROMNSIMAGE__ #define __RIMAGEFROMNSIMAGE__ #include "rimage.h" #include "CERT_filetypes.h" /** Setup/teardown needed for using rimageFromNSImage(). * Make sure to call initForNSImage() before the first use of rimageFromNSImage. * And make sure to call releaseForNSImage() after the last use of rimageFromNSImage. * This is all Mac OS X specific code. */ void initForNSImage(); void releaseForNSImage(); bool rimageFromNSImage( RImage &rimage, const std::string &path ); bool saveRimageToFile( RImage &rimage, const std::string &path, CERT::Images::filetype format ); #endif