Click or drag to resize

DocumentViewer.Add Method (Stream, Int32, String, String)

Loads one or more images from a Stream.

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(
	Stream stream,
	int frameIndex,
	string caption,
	string toolTip
)

Parameters

stream
Type: System.IO.Stream
The stream containing the image data.
frameIndex
Type: System.Int32
The frame index to load or -1 to load all pages of a multipage image.
caption
Type: System.String
The thumbnail caption to use.
toolTip
Type: System.String
The tooltip for the thumbnail.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if the stream argument is null (Nothing in VB).
ArgumentException Thrown if the stream is not seekable or does not have read access.
See Also