GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / SaveAsJP2 Method / SaveAsJP2(Int32,String,Int32) 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.
Specifies the compression rate Between [1(MaxQuality - Lossless) ... 512(Poor quality)]. Default value is 16.





In This Topic
SaveAsJP2(Int32,String,Int32) Method
In This Topic
Saves a GdPicture image as JPEG-2000 File image.
Syntax
'Declaration
 
Public Overloads Function SaveAsJP2( _
   ByVal ImageID As Integer, _
   ByVal FilePath As String, _
   ByVal Rate As Integer _
) As GdPictureStatus
public GdPictureStatus SaveAsJP2( 
   int ImageID,
   string FilePath,
   int Rate
)
public function SaveAsJP2( 
    ImageID: Integer;
    FilePath: String;
    Rate: Integer
): GdPictureStatus; 
public function SaveAsJP2( 
   ImageID : int,
   FilePath : String,
   Rate : int
) : GdPictureStatus;
public: GdPictureStatus SaveAsJP2( 
   int ImageID,
   string* FilePath,
   int Rate
) 
public:
GdPictureStatus SaveAsJP2( 
   int ImageID,
   String^ FilePath,
   int Rate
) 

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.
Rate
Specifies the compression rate Between [1(MaxQuality - Lossless) ... 512(Poor quality)]. Default value is 16.

Return Value

A member of the GdPictureStatus enumeration.
Remarks

This method requires the Image Documents component to run.

See Also