ImgSaveAsJpg |
Top Previous Next |
Prototype
boolSaved:=ImgSaveAsJpg(intImageHandle, strFileName, intQFactor)
Description
Saves an image in JPEG format.
Parameters
intImageHandle: integer value corresponding to the image handle.
strFileName: A string containing a valid path and filename.
intQFactor: quality factor, from 0 (low) to 100 (high); recommended value is 80, the right compromise between file size and quality loss from the original image.
Returned value
boolSaved: boolean value that specifies if saving operation was correctly executed.
Notes
None.
Example
// Build the file name to use NewFileName:='c:\images\JPEGs\'+ExtractFileName(_CurrentInputFile); // Save current image in jpeg format, if bits per pixel > 1 if ImgGetBitsPixel(_CurrentImage)>1 then ImgSaveAsJpg(_CurrentImage,NewFileName,80) else ApplicationLog('Error: monochrome image cannot be saved in JPEG format !'); |