Click or drag to resize

AtalaAnnotationViewerSave Method (Stream, ImageEncoder, ProgressEventHandler)

Saves the image along with annotations (if AutoSaveXmp or AutoSaveWang are true) using the specified ImageEncoder.

Namespace:  Atalasoft.Annotate.Wpf
Assembly:  Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public void Save(
	Stream stream,
	ImageEncoder encoder,
	ProgressEventHandler progress
)

Parameters

stream
Type: System.IOStream
The stream where the image will be saved.
encoder
Type: Atalasoft.Imaging.CodecImageEncoder
The encoder used to save the image.
progress
Type: Atalasoft.ImagingProgressEventHandler
An event handler for progress notification.
Exceptions
ExceptionCondition
Thrown if the stream or encoder argument is null (Nothing in VB).
Thrown if the stream does not have write access.
Remarks
Annotation data will automatically be embedded into the image when the AutoSaveXmp and/or AutoSaveWang properties are true and a compatible ImageEncoder is provided. XMP data is only supported in JPEG and TIFF files and WANG is only supported in TIFF files.
See Also