See Also Examples Applies To
Selects a page of a multipage gif image. The page can now be edited or saved to a different file.
Syntax
object.GifSelectPage (nImageID, nPage)
The GifSelectPage 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 multipage gif image handle. (Can be an editable multipage gif or a read only gif image.) |
| nPage | Required. Long. page no between 1 and page count. |
Returns
Long. GdPictureStatus
Remarks
This function works with editable multipage gif images and with multipage gif images opened as read only.
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)