See Also Examples Applies To
Saves an editable multipage gif image to a file.
Syntax
object.GifSaveMultiPageToFile (nImageID, sFilePath)
The GifSaveMultiPageToFile syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nImageID | Required. Long. GdPicture Image handle. The editable multipage gif image to save as file. |
| sFilePath | Required. String. The path to save the image. |
Returns
Long. GdPictureStatus
Remarks
This function can only be used with an editable multipage gif image.
To check if an image is an editable multipage gif image you can use the GifIsEditableMultiPage() function.
This function must only be used to save an editable multipage gif image.
Category
Gif Manipulation
Visual Basic Sample
Draw page number on each page of a multipage gif image
Dim nCpt As Long
Dim nGifImageID As Long
Dim nPageCount As Long
nGifImageID = Object.GifCreateMultiPageFromFile("input.gif")
nPageCount = Object.GifGetPageCount(nGifImageID)
For nCpt = 1 To nPageCount
Call Object.GifSelectPage(nGifImageID, nCpt)
Call Object.DrawText("Page " & CStr(nCpt) & " / " & CStr(nPageCount), 50, 50, 10)
Next nCpt
Call Object.GifSaveMultiPageToFile(nGifImageID, "output.gif")
Object.CloseImage (nGifImageID)