GdPicture.NET Reference Guide
SaveAsGIF Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : SaveAsGIF Method
GdPicture Image Identifier.
A string that contains the name of the file to which to save the image. Can be an empty string. If empty, prompts the user to select a file. You can subsequently use the GetLastPath() method to retrieve the path of the selected file.
Saves a GdPicture image as Graphics Interchange Format image.
Syntax
'Declaration
 
Public Function SaveAsGIF( _
   ByVal ImageID As Integer, _
   ByVal FilePath As String _
) As GdPictureStatus
public GdPictureStatus SaveAsGIF( 
   int ImageID,
   string FilePath
)
public function SaveAsGIF( 
    ImageID: Integer;
    FilePath: String
): GdPictureStatus; 
public function SaveAsGIF( 
   ImageID : int,
   FilePath : String
) : GdPictureStatus;
public: GdPictureStatus SaveAsGIF( 
   int ImageID,
   string* FilePath
) 
public:
GdPictureStatus SaveAsGIF( 
   int ImageID,
   String^ FilePath
) 

Parameters

ImageID
GdPicture Image Identifier.
FilePath
A string that contains the name of the file to which to save the image. Can be an empty string. If empty, prompts the user to select a file. You can subsequently use the GetLastPath() method to retrieve the path of the selected file.

Return Value

A member of the GdPictureStatus enumeration.
Example
How to convert bmp file to gif (Graphics interchange format) file.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("image.bmp")
If imageId <> 0 Then
   oGdPictureImaging.SaveAsGIF(ImageID, "image.gif")
   oGdPictureImaging.ReleaseGdPictureImage (ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members