GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / GifInsertFrameFromFile Method
GdPicture image identifier. The editable multiframe gif image in which the frame will be inserted.
The position to add the new frame. Must be a value from 1 to the current number of frames available in the multiframe gif image.
The path of the image to append within the editable multiframe gif image.





In This Topic
GifInsertFrameFromFile Method (GdPictureImaging)
In This Topic
Inserts a new frame from file at the selected position an editable multiframe gif image. The Frame position has to be a number smaller or equal than the current number of frames available in the multiframe gif image.
Syntax
'Declaration
 
Public Function GifInsertFrameFromFile( _
   ByVal ImageID As Integer, _
   ByVal Position As Integer, _
   ByVal FilePath As String _
) As GdPictureStatus
public GdPictureStatus GifInsertFrameFromFile( 
   int ImageID,
   int Position,
   string FilePath
)
public function GifInsertFrameFromFile( 
    ImageID: Integer;
    Position: Integer;
    FilePath: String
): GdPictureStatus; 
public function GifInsertFrameFromFile( 
   ImageID : int,
   Position : int,
   FilePath : String
) : GdPictureStatus;
public: GdPictureStatus GifInsertFrameFromFile( 
   int ImageID,
   int Position,
   string* FilePath
) 
public:
GdPictureStatus GifInsertFrameFromFile( 
   int ImageID,
   int Position,
   String^ FilePath
) 

Parameters

ImageID
GdPicture image identifier. The editable multiframe gif image in which the frame will be inserted.
Position
The position to add the new frame. Must be a value from 1 to the current number of frames available in the multiframe gif image.
FilePath
The path of the image to append within the editable 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.

Supported formats are listed here: http://www.gdpicture.com/solutions/supported-formats/.

This method requires the Image Documents component to run.

See Also