ThumbnailCollectionAdd Method (Stream, Int32, String, String) |
Adds 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 Thumbnail Add(
Stream stream,
int frameIndex,
string caption,
string toolTip
)
Public Function Add (
stream As Stream,
frameIndex As Integer,
caption As String,
toolTip As String
) As Thumbnail
Parameters
- stream
- Type: System.IOStream
The stream containing the image. - frameIndex
- Type: SystemInt32
The frame index of the image. - caption
- Type: SystemString
The caption for the thumbnail. - toolTip
- Type: SystemString
The tooltip used for the thumbnail.
Return Value
Type:
ThumbnailExceptions Exception | 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 index is out of range for this collection. |
See Also