Gets information about a specific thumbnail element.
public ThumbnailInfo GetThumbnailInfo(
int thumbIndex
)
Public Function GetThumbnailInfo( _
ByVal thumbIndex As Integer _
) As Leadtools.Web.Controls.ThumbnailInfo
public:
Leadtools.Web.Controls.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 Leadtools
Imports Leadtools.Codecs
Imports Leadtools.Web.Controls
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.Add-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.Add-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.Insert-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.Insert-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.ThumbsDirection-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.ThumbsDirection-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.Clear-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.Clear-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.GetThumbnailInfo-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.GetThumbnailInfo-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.PropertyChanged-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.PropertyChanged-->
Public Function WebImageViewer_GetThumbnailImage(ByVal webThumbnailViewer As WebThumbnailViewer) As RasterImage
Dim image As RasterImage = Nothing
If (webThumbnailViewer.Count > 1) Then
Dim thumbInfo As ThumbnailInfo = webThumbnailViewer.GetThumbnailInfo(0)
Dim thumbImageUrl As String = thumbInfo.Url
If (Not thumbInfo.CacheFileName = String.Empty) Then
thumbImageUrl = thumbInfo.CacheFileName
End If
Dim 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 If
Return image
End Function
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.