ThumbnailImageViewerSynchronizer.Open Method (Stream, Int32, String, String) |
Opens 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)
Syntaxpublic void Open(
Stream stream,
int frameIndex,
string caption,
string toolTip
)
Public Sub Open (
stream As Stream,
frameIndex As Integer,
caption As String,
toolTip As String
)
Parameters
- stream
- Type: System.IO.Stream
A stream containing the image. This stream must be seekable. - frameIndex
- Type: System.Int32
The frame index of the image or -1 to load all frames from a multipage image. - caption
- Type: System.String
The thumbnail caption. - toolTip
- Type: System.String
The thumbnail tooltip.
ExceptionsException | Condition |
---|
ArgumentNullException | Thrown if the stream is null (Nothing in VB). |
IOException | Thrown if the stream is not seekable or does not have read access. |
ArgumentOutOfRangeException | Thrown if the frame index is invalid for this stream. |
See Also