DocumentViewerOpen Method (Stream) |
Opens all pages of an image 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 Open(
Stream stream
)
Public Sub Open (
stream As Stream
)
Parameters
- stream
- Type: System.IOStream
The stream containing the image. The stream must have read access and be seekable.
Exceptions Exception | Condition |
---|
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. |
Examples using (FileStream fs = new FileStream(@"C:\images\multipage.tif", FileMode.Open, FileAccess.Read, FileShare.Read))
{
this._viewer.Open(fs);
}
Dim fs As FileStream = New FileStream("C:\images\multipage.tif", FileMode.Open, FileAccess.Read, FileShare.Read)
Try
Me._viewer.Open(fs)
Finally
fs.Dispose()
End Try
See Also