Click or drag to resize

DocumentViewerAdd Method (RandomAccessImageSource)

Adds images from a RandomAccessImageSource into the DocumentViewer.

Namespace:  Atalasoft.Imaging.WinControls
Assembly:  Atalasoft.dotImage.WinControls (in Atalasoft.dotImage.WinControls.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public void Add(
	RandomAccessImageSource imageSource
)

Parameters

imageSource
Type: Atalasoft.ImagingRandomAccessImageSource
The image source to grab images from.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if the imageSource argument is null (Nothing in VB).
ArgumentException Thrown if the image source does not know its total image count.
Examples
this._viewer.Add(new FileSystemImageSource(new string[] { @"C:\images\multipage.tif" }, true));
See Also