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

Swaps two frames in an editable multiframe gif image.

C#
public GdPictureStatus GifSwapFrames(
    int ImageID, 
    int Frame1, 
    int Frame2
);
Visual Basic
Public Function GifSwapFrames(
    ByVal ImageID As Integer, 
    ByVal Frame1 As Integer, 
    ByVal Frame2 As Integer
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier. The editable multiframe gif image in which frames will be swapped.  
Frame1 
The position of the first frame to swap with the second. Must be a value from 1 to the current number of frames available in the multiframe gif image.  
Frame2 
The position of the second frame to swap with the first one. Must be a value from 1 to the current number of frames available in the multiframe gif 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. 

To save modifications brought to the multiframe gif image you need to use the GifSaveMultiFrameToFile() function.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.