GdPicture.NET Reference Guide
SaveAsJBIG2 Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : SaveAsJBIG2 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 JBIG2 image format with lossless compression.
Syntax
'Declaration
 
Public Function SaveAsJBIG2( _
   ByVal ImageID As Integer, _
   ByVal FilePath As String _
) As GdPictureStatus
public GdPictureStatus SaveAsJBIG2( 
   int ImageID,
   string FilePath
)
public function SaveAsJBIG2( 
    ImageID: Integer;
    FilePath: String
): GdPictureStatus; 
public function SaveAsJBIG2( 
   ImageID : int,
   FilePath : String
) : GdPictureStatus;
public: GdPictureStatus SaveAsJBIG2( 
   int ImageID,
   string* FilePath
) 
public:
GdPictureStatus SaveAsJBIG2( 
   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 jbig2 file.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("image.bmp")
If imageId <> 0 Then
   oGdPictureImaging.SaveAsJBIG2 (ImageID, "image.jb2")
   oGdPictureImaging.ReleaseGdPictureImage (ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members