This documentation is for the old version. Go to the latest Graphics Mill docs

Bitmap.Save Method (String, IEncoderOptions)

Saves the bitmap into specified file.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Sub Save ( _
	fileName As String, _
	options As IEncoderOptions _
)
C#
public void Save(
	string fileName,
	IEncoderOptions options
)

Parameters

fileName

Type: System.String

The name of the target file.
options

Type: Aurigma.GraphicsMill.Codecs.IEncoderOptions

An object containing encoder settings.

Remarks

This method determines from encoder options (regardless to the file extension).

Using this method is the same as creating appropriate writer derived from FormatWriter and running it in synchronous mode.

Examples

Visual Basic
bitmap.Save("c:\result.jpg", New Aurigma.GraphicsMill.Codecs.JpegEncoderOptions(70, True))
C#
bitmap.Save(@"c:\result.jpg", new Aurigma.GraphicsMill.Codecs.JpegEncoderOptions(70, true));

See Also

Reference