You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Saving GdPicture Image > SaveAsJ2K > SaveAsJ2K Method (Integer, String, Integer)
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.SaveAsJ2K Method (Integer, String, Integer)

Saves a GdPicture image as JPEG-2000 codestream image format.

C#
public GdPictureStatus SaveAsJ2K(
    int ImageID, 
    String FilePath, 
    int Rate
);
Visual Basic
Public Function SaveAsJ2K(
    ByVal ImageID As Integer, 
    ByVal FilePath As String, 
    ByVal Rate As Integer
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
FilePath 
The complete file path to save a GdPicture image.  
Rate 
Defines compression rate Between [1(MaxQuality) ... 512(Poor quality)]. Usually 16.  
Returns

A member of the GdPictureStatus enumeration.

This function works only with 8-bits grayscale images, 24-bits images and 32-bits images

How to convert BMP file to JPEG 2000 codestream file

Dim ImageID As Integer
 
ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("image.bmp")
If ImageID <> 0 Then
   oGdPictureImaging.SaveAsJ2K (ImageID, "image.j2k", 16)
   oGdPictureImaging.ReleaseGdPictureImage (ImageID)
End If
What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.