AtalaImageViewer.Open Method (String, Int32, ProgressEventHandler) |
Opens an image from a filename.
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)
Syntaxpublic void Open(
string fileName,
int frameIndex,
ProgressEventHandler progress
)
Public Sub Open (
fileName As String,
frameIndex As Integer,
progress As ProgressEventHandler
)
Parameters
- fileName
- Type: System.String
The filename of the image to open. - frameIndex
- Type: System.Int32
The frame index to open. This value must be zero or greater. - progress
- Type: Atalasoft.Imaging.ProgressEventHandler
A ProgressEventHandler used to raise progress during the decoding process.
This can be null (Nothing in VB).
ExceptionsException | Condition |
---|
| Thrown if the fileName argument is null (Nothing in VB). |
| Thrown if the fileName cannot be found. |
| Thrown if the frameIndex argument is invalid. |
See Also