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

Saves an editable multiframe gif image to a file.

C#
public GdPictureStatus GifSaveMultiFrameToFile(
    int ImageID, 
    String FilePath
);
Visual Basic
Public Function GifSaveMultiFrameToFile(
    ByVal ImageID As Integer, 
    ByVal FilePath As String
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier. The editable multiframe gif image to save as file.  
FilePath 
The path to save the image.  
Returns

A member of the GdPictureStatus enumeration.

This function can only be used with an editable multiframe gif image. 

To check if an image is an editable multiframe gif image you can use the GifIsEditableMultiFrame() function. 

This function must only be used to save an editable multiframe gif image.

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.