ImgSaveAsGif |
Top Previous Next |
Prototype
boolSaved:=ImgSaveAsGif(intImageHandle, strFileName)
Description
Saves an image in GIF format.
Parameters
intImageHandle: integer value corresponding to the image handle.
strFileName: A string containing a valid path and filename.
Returned value
boolSaved: boolean value that specifies if saving operation was correctly executed.
Notes
The GIF format uses lzw compression, covered by copyright in some contries. Please check if you have to pay some royalties to use it. Note also the GIF format design doesn't includes image resolution informations, so when you will reload the image you will loose the original value, and usually a default 96 DPI value (screen resolution) is used.
Example
// Build the file name to use NewFileName:='c:\images\GIFs\'+ExtractFileName(_CurrentInputFile); // Save current image in gif format ImgSaveAsGif(_CurrentImage,NewFileName);
|