Click or drag to resize

ThumbnailCollection.Add Method (String, Int32, String)

Adds a Thumbnail to the collection by specifying the filename, frame index and caption.

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(
	string fileName,
	int frameIndex,
	string caption
)

Parameters

fileName
Type: System.String
The full path and filename of the image used to create the thumbnail.
frameIndex
Type: System.Int32
The frame index of the image.
caption
Type: System.String
The caption for the thumbnail.

Return Value

Type: Thumbnail
Exceptions
ExceptionCondition
ArgumentNullException Thrown if the filename is null (Nothing in VB) or an empty string.
FileNotFoundException Thrown if the file cannot be found.
ArgumentOutOfRangeException Thrown if the frame index is out of range for the image.
See Also