You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Multiframe GIF Manipulation > GifSelectFrame Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.GifSelectFrame Method

Selects a frame of a multiframe gif image. The frame can now be edited or saved to a different file.

C#
public GdPictureStatus GifSelectFrame(
    int ImageID, 
    int Frame
);
Visual Basic
Public Function GifSelectFrame(
    ByVal ImageID As Integer, 
    ByVal Frame As Integer
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier. The multiframe gif image. (Can be an editable multiframe gif or a read only gif image.)  
Frame 
Frame no between 1 and frame count.  
Returns

A member of the GdPictureStatus enumeration.

This function works with editable multiframe gif images and with multiframe gif images opened as read only.

apply negative effect on all frames of an animated gif image

Dim i As Integer
Dim GifImageID As Integer
Dim FrameCount As Integer
 
GifImageID = oGdPictureImaging.GifCreateMultiFrameFromFile("input.gif")
FrameCount = oGdPictureImaging.GifGetFrameCount(GifImageID)
 
For i = 1 To FrameCount
    oGdPictureImaging.GifSelectFrame(GifImageID, i)
     oGdPictureImaging.FxNegative(GifImageID)
 Next i
 
 oGdPictureImaging.GifSaveMultiFrameToFile(GifImageID,  "output.gif")
 oGdPictureImaging.ReleaseGdPictureImage(GifImageID)
What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.