Parameters
- filename
- Filename where the image should be saved.
Exception | Description |
---|---|
System.ArgumentNullException | Thrown if filename is null. |
EncoderException | Thrown if encoder is not found for specified file extension or error occurs at saving the image. |
Supported image formats: BMP, GIF, JBIG2, JPEG, PCX, PDF, PNG, TIFF.
Suitable encoder is selected automatically from the extension of the filename, exception is thrown if encoder is not found for file extension specified in filename.
If image is saving to new file (filename != SourceInfo.Filename) this method:
This C#/VB.NET code shows how to load image from TIFF file and save it as JPEG file.
Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5
VintasoftImage Class
VintasoftImage Members
AnnotationsFormat
Save(String,EncoderBase)
Overload List