Declaration
procedure SaveToFileGif(const FileName: WideString);
Description
Saves the current image to a file in GIF format (89a). The GIF will have a single image and it won't be marked as animated.
FileName is the file name including extension.
Notes:
-
TImageEnIO.SaveToFileGIF only supports saving of a single frame GIF. To save a GIF with multiple frames use
TImageEnMIO.SaveToFileGIF, or insert a frame using
InsertToFileGIF- If an internal save error is encountered
Aborting will return true. Saving issues due to insufficient write permissions and disk write failures will raise an exception.
- To abort while saving set
Aborting to true
Example
// Save an interlaced, 64 color Gif.
ImageEnView1.IO.Params.GIF_Interlaced := True;
ImageEnView1.IO.Params.BitsPerSample := 6;
ImageEnView1.IO.Params.SamplesPerPixel := 1;
ImageEnView1.IO.SaveToFileGif('D:\image.gif');
See Also
-
SaveToStreamGIF-
LoadFromFileGIF-
InsertToFileGIF-
ReplaceFileGIF-
IEOptimizeGIF-
CheckAniGIF-
DeleteGifIm-
GIF_ImageIndex-
GIF_ImageCount-
Global Image Methods