AtalaImageViewerOpen Method (Stream, Int32, ProgressEventHandler) |
Opens an image from a stream.
Namespace:
Atalasoft.Imaging.Wpf
Assembly:
Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public void Open(
Stream stream,
int frameIndex,
ProgressEventHandler progress
)
Public Sub Open (
stream As Stream,
frameIndex As Integer,
progress As ProgressEventHandler
)
Parameters
- stream
- Type: System.IOStream
The stream containing the image file. - frameIndex
- Type: SystemInt32
The frame index to open. This value must be zero or greater. - progress
- Type: Atalasoft.ImagingProgressEventHandler
A ProgressEventHandler used to raise progress during the decoding process.
This can be null (Nothing in VB).
Exceptions Exception | Condition |
---|
| Thrown if the stream is null (Nothing in VB). |
| Thrown if the frameIndex argument is invalid. |
See Also