<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <html><head><title>OpenRM - RMI Library (rmjpeg.c)</title></head> <body bgcolor=white fgcolor=black> <table width="100%" border=2 cellspacing=0 cellpadding=0 bgcolor="khaki" valign="center"> <th><img src="./images/ormsg.gif"> </th> </table> <spacer type=vertical size=15> <h2>Index of OpenRM - RMI Library</h2> <spacer type=vertical size=15> <a name="rmiWriteJPEG"> <pre><b> RMenum rmiWriteJPEG(const char *filename, int quality, const RMimage *toWrite) </b></pre> <pre> 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. </pre> <menu><P> Writes a JPEG image raster file named "filename" using the input RMimage object "toWrite" as the source. The quality of the JPEG file is determined by the "quality" parameter, which ranges from 0-100. Smaller quality values produce greater amounts of compression, smaller files and poorer image image quality. Larger quality values produce larger files, less compression, and better image quality. </P> <P> Returns RM_CHILL upon success, or RM_WHACKED upon failure. </P> <P> This routine works only on RMimage objects that contain RGB images. </P></menu> <i>librmi library source file: rmjpeg.c </i><hr width="75%"> <a name="rmiReadJPEG"> <pre><b> RMimage *rmiReadJPEG (const char * filename) </b></pre> <pre> const char * filename - a character string, the name of the file containing a JPEG image to read (input). </pre> <menu><P> This routine will open and read a JPEG image file. If there are no errors, this routine will create and return to the caller an RMimage object containing the raster image data. If there is a problem reading the JPEG file, NULL is returned. </P></menu> <i>librmi library source file: rmjpeg.c </i><hr width="75%"> </body></html>