RMenum rmiWriteJPEG(const char *filename,
int quality,
const RMimage *toWrite)
const char *filename - the name of the file to be written. int quality - integer value that controls degree of lossiness in
JPEG file. The value of quality ranges from 0-100, with 100 being
the least amount of loss, and smaller numbers producing increasing
amounts of error. Smaller numbers result in smaller output file size. const RMimage *toWrite - the RMimage object that will be written
to the file in JPEG format.
librmi library source file: rmjpeg.c