GdPicture.NET Reference Guide
GifSwapFrames Method (GdPictureImaging)





GdPicture14 Namespace > GdPictureImaging Class : GifSwapFrames Method
GdPicture image identifier. The editable multiframe gif image in which frames will be swapped.
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.
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.
Swaps two frames in an editable multiframe gif image.
Syntax
'Declaration
 
Public Function GifSwapFrames( _
   ByVal ImageID As Integer, _
   ByVal Frame1 As Integer, _
   ByVal Frame2 As Integer _
) As GdPictureStatus
public GdPictureStatus GifSwapFrames( 
   int ImageID,
   int Frame1,
   int Frame2
)
public function GifSwapFrames( 
    ImageID: Integer;
    Frame1: Integer;
    Frame2: Integer
): GdPictureStatus; 
public function GifSwapFrames( 
   ImageID : int,
   Frame1 : int,
   Frame2 : int
) : GdPictureStatus;
public: GdPictureStatus GifSwapFrames( 
   int ImageID,
   int Frame1,
   int Frame2
) 
public:
GdPictureStatus GifSwapFrames( 
   int ImageID,
   int Frame1,
   int Frame2
) 

Parameters

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.

Return Value

A member of the GdPictureStatus enumeration.
Remarks

This method 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() method.

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

See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
GifIsEditableMultiFrame Method
GifSaveMultiFrameToFile Method