Click or drag to resize

DocumentAnnotationViewerSave Method (Stream, ImageEncoder)

Saves the current image for single page encoders or all pages for multipage encoders.

By default, annotations will be embedded into JPEG, TIFF and PDF files. Set the AnnotationSaveOptionsHandler property to control the annotation save behavior.

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

Parameters

stream
Type: System.IOStream
The stream to save the image(s) into.
encoder
Type: Atalasoft.Imaging.CodecImageEncoder
The encoder to use for the image(s).
Exceptions
ExceptionCondition
ArgumentNullException Thrown if the stream is null (Nothing in VB).
ArgumentException Thrown if the encoder is a MultiFramedImageEncoder and the stream is not seekable.
See Also