AnnotateViewerOpen Method (Stream, Int32, Boolean) |
This method will open an image from a viewer and optionally load the XMP annotations embedded in that
image.
Namespace:
Atalasoft.Annotate.UI
Assembly:
Atalasoft.dotImage.WinControls (in Atalasoft.dotImage.WinControls.dll) Version: 2026.2.0.0.42 (.NET 4.6.2, x86)
Syntaxpublic void Open(
Stream stream,
int frameIndex,
bool loadAnnotations
)
Public Sub Open (
stream As Stream,
frameIndex As Integer,
loadAnnotations As Boolean
)
Parameters
- stream
- Type: System.IOStream
A stream containing the image file. - frameIndex
- Type: SystemInt32
A frame index to load, or -1 to load all frames. - loadAnnotations
- Type: SystemBoolean
True to load XMP annotations embedded into the image file.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | Thrown if the stream is null (Nothing in VB). |
| ArgumentOutOfRangeException | Thrown if the frameIndex is invalid for the image. |
See Also