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

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

Parameters

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

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

// Load a JPEG image from a file.
using (Aspose.Imaging.FileFormats.Jpeg.JpegImage jpegImage = new Aspose.Imaging.FileFormats.Jpeg.JpegImage(dir + "sample.jpg"))
{
    // Do some image processing.
    // Save to another JPEG file.
    jpegImage.Save(dir + "sample.output.jpg");
}
See Also