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

LosslessJpegTransform.Write Method (String)

Writes the JPEG file to the specified file without changes.

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

Syntax

Visual Basic
Public Sub Write ( _
	fileName As String _
)
C#
public void Write(
	string fileName
)

Parameters

fileName

Type: System.String

The name of the file where you want to save the result.

Remarks

You can use this method to edit EXIF or IPCT data without recompression of the image. In this case the workflow should the following:

  1. Open the JPEG file using the Open(String) method.
  2. Update EXIF or IPTC data using Exif or Iptc properties.
  3. Save changes in a separate file using this method.
Note

You cannot save changes in the same file you opened the transform at (by design). If you need to do it, you should to save the updated file to a memory stream (using an overloaded version of this method), close the transform, and save the stream to the original file.

See Also

Reference