GdPicture.NET Reference Guide
GifSelectFrame Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : GifSelectFrame Method
GdPicture Image Identifier. The multiframe gif image. (Can be an editable multiframe gif or a read-only gif image.).
Frame no between 1 and frame count.
Selects a frame of a multiframe gif image. The frame can now be edited or saved to a different file.
Syntax
'Declaration
 
Public Function GifSelectFrame( _
   ByVal ImageID As Integer, _
   ByVal Frame As Integer _
) As GdPictureStatus
public GdPictureStatus GifSelectFrame( 
   int ImageID,
   int Frame
)
public function GifSelectFrame( 
    ImageID: Integer;
    Frame: Integer
): GdPictureStatus; 
public function GifSelectFrame( 
   ImageID : int,
   Frame : int
) : GdPictureStatus;
public: GdPictureStatus GifSelectFrame( 
   int ImageID,
   int Frame
) 
public:
GdPictureStatus GifSelectFrame( 
   int ImageID,
   int Frame
) 

Parameters

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.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method works with both editable multiframe gif images and ones opened as read-only
Example
Applying negative effect on all frames of an animated gif image
Dim i As Integer
Dim GifImageID As Integer = oGdPictureImaging.GifCreateMultiFrameFromFile("input.gif")
Dim FrameCount As Integer = 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)
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
GifGetFrameCount Method
GifIsMultiFrame Method