Jpeg2000Image Constructor (String)
Initializes a new instance of the Jpeg2000Image class.

Namespace: Aspose.Imaging.FileFormats.Jpeg2000
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 21.04
Syntax
public Jpeg2000Image(
	string path
)

Parameters

path
Type: SystemString
The path to load image from and initialize pixel and palette data with.
Examples
This example shows how to load a JPEG2000 image from a file and save it to PNG.
[C#]

string dir = "c:\\temp\\";

// Load a JPEG2000 image.
using (Aspose.Imaging.FileFormats.Jpeg2000.Jpeg2000Image jpeg2000Image = new Aspose.Imaging.FileFormats.Jpeg2000.Jpeg2000Image(dir + "sample.jp2"))
{
    // Save to PNG
    jpeg2000Image.Save(dir + "sample.output.png", new Aspose.Imaging.ImageOptions.PngOptions());
}
See Also