Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.ImageProcessing
Imports Leadtools.Web.Controls
Public Sub WebThumbnailViewer_InitWebThumbnailViewerWithText(ByVal webThumbnailViewer As WebThumbnailViewer, ByVal webViewerID As String)
webThumbnailViewer.CacheFolder = "MyCacheFolderName"
webThumbnailViewer.ResourcesPath = "Resources"
webThumbnailViewer.BrowserImageFormat = BrowserImageFormat.Jpeg
webThumbnailViewer.HorizontalAlignMode = ImageViewerAlignMode.Center
webThumbnailViewer.VerticalAlignMode = ImageViewerAlignMode.Center
webThumbnailViewer.LayoutDirection = LayoutDirection.Horizontal
webThumbnailViewer.ThumbStyle.BackColor = Color.LightGray
webThumbnailViewer.ThumbStyle.Cursor = "pointer"
webThumbnailViewer.ThumbStyle.HoverBackColor = Color.Gray
webThumbnailViewer.SelectedThumbStyle.BackColor = Color.Red
webThumbnailViewer.SelectedThumbStyle.Cursor = "default"
webThumbnailViewer.SelectedThumbStyle.HoverBackColor = Color.DarkRed
webThumbnailViewer.ThumbPadding = 10
webThumbnailViewer.ThumbSpacing = 10
webThumbnailViewer.ViewerID = webViewerID
webThumbnailViewer.ThumbSize = New Size(120, 120)
webThumbnailViewer.ShowItemText = True
webThumbnailViewer.Add("Resources\multipage.tif", 1, 1, "Page1")
webThumbnailViewer.Add("Resources\multipage.tif", 1, 2, "Page2")
webThumbnailViewer.SelectedIndex = 0
End Sub
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Web.Controls;
public void WebThumbnailViewer_InitWebThumbnailViewerWithText(WebThumbnailViewer webThumbnailViewer, string webViewerID)
{
webThumbnailViewer.CacheFolder = "MyCacheFolderName";
webThumbnailViewer.ResourcesPath = @"Resources";
webThumbnailViewer.BrowserImageFormat = BrowserImageFormat.Jpeg;
webThumbnailViewer.HorizontalAlignMode = ImageViewerAlignMode.Center;
webThumbnailViewer.VerticalAlignMode = ImageViewerAlignMode.Center;
webThumbnailViewer.LayoutDirection = LayoutDirection.Horizontal;
webThumbnailViewer.ThumbStyle.BackColor = Color.LightGray;
webThumbnailViewer.ThumbStyle.Cursor = "pointer";
webThumbnailViewer.ThumbStyle.HoverBackColor = Color.Gray;
webThumbnailViewer.SelectedThumbStyle.BackColor = Color.Red;
webThumbnailViewer.SelectedThumbStyle.Cursor = "default";
webThumbnailViewer.SelectedThumbStyle.HoverBackColor = Color.DarkRed;
webThumbnailViewer.ThumbPadding = 10;
webThumbnailViewer.ThumbSpacing = 10;
webThumbnailViewer.ViewerID = webViewerID;
webThumbnailViewer.ThumbSize = new Size(120, 120);
webThumbnailViewer.ShowItemText = true;
webThumbnailViewer.Add(@"Resources\multipage.tif", 1, 1, "Page1");
webThumbnailViewer.Add(@"Resources\multipage.tif", 1, 2, "Page2");
webThumbnailViewer.SelectedIndex = 0;
}