Gets information about a specific thumbnail element.
public ThumbnailInfo GetThumbnailInfo(int thumbIndex)
Public Function GetThumbnailInfo( _ByVal thumbIndex As Integer _) As ThumbnailInfo
public:ThumbnailInfo GetThumbnailInfo(int thumbIndex)
thumbIndex
The 0-based index of the thumbnail element about which to obtain information.
A ThumbnailInfo object containing information about the specified thumbnail element.
This example loads the first thumbnail image into Leadtools.RasterImage.
using Leadtools;using Leadtools.Codecs;using Leadtools.Web.Controls;public RasterImage WebThumbnailViewer_GetThumbnailImage(WebThumbnailViewer webThumbnailViewer){RasterImage image = null;if (webThumbnailViewer.Count > 1){ThumbnailInfo thumbInfo = webThumbnailViewer.GetThumbnailInfo(0);string thumbImageUrl = thumbInfo.Url;if (thumbInfo.CacheFileName != string.Empty)thumbImageUrl = thumbInfo.CacheFileName;RasterCodecs codecs = new RasterCodecs();string filePath = webThumbnailViewer.Page.MapPath(thumbImageUrl);image = codecs.Load(filePath, 0, CodecsLoadByteOrder.BgrOrGray, thumbInfo.Page, thumbInfo.Page);}return image;}
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.Web.ControlsPublic Function WebImageViewer_GetThumbnailImage(ByVal webThumbnailViewer As WebThumbnailViewer) As RasterImageDim image As RasterImage = NothingIf (webThumbnailViewer.Count > 1) ThenDim thumbInfo As ThumbnailInfo = webThumbnailViewer.GetThumbnailInfo(0)Dim thumbImageUrl As String = thumbInfo.UrlIf (Not thumbInfo.CacheFileName = String.Empty) ThenthumbImageUrl = thumbInfo.CacheFileNameEnd IfDim codecs As RasterCodecs = New RasterCodecs()Dim filePath As String = webThumbnailViewer.Page.MapPath(thumbImageUrl)image = codecs.Load(filePath, 0, CodecsLoadByteOrder.BgrOrGray, thumbInfo.Page, thumbInfo.Page)End IfReturn imageEnd Function
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
