Leadtools.Web.Controls Namespace > WebImageViewer Class > OpenImageUrl Method : OpenImageUrl(String,Int32) Method |
'Declaration Public Overloads Sub OpenImageUrl( _ ByVal imageUrl As String, _ ByVal pageIndex As Integer _ )
'Usage Dim instance As WebImageViewer Dim imageUrl As String Dim pageIndex As Integer instance.OpenImageUrl(imageUrl, pageIndex)
Public Sub WebImageViewer_OpenImageUrl(ByVal mainWebImageViewer As WebImageViewer, ByVal webImagePanViewer As WebImagePanViewer) mainWebImageViewer.InteractiveZoomPercent = 15 mainWebImageViewer.MouseInteractiveMode.LeftButton = ImageViewerMouseInteractiveMode.ZoomIn mainWebImageViewer.MouseInteractiveMode.RightButton = ImageViewerMouseInteractiveMode.ZoomOut mainWebImageViewer.ScaleFactor = 1.5 mainWebImageViewer.TileSize = New Size(450, 450) ' Prevent the Internet Explorer from loading the viewer images in the Temporary Internet Folder. mainWebImageViewer.DisableBrowserCaching = True mainWebImageViewer.OpenImageUrl("Resources\multipage.tif", 2) webImagePanViewer.HorizontalAlignMode = ImageViewerAlignMode.Center webImagePanViewer.VerticalAlignMode = ImageViewerAlignMode.Center webImagePanViewer.RectangleColor = Color.Blue ' Prevent the Internet Explorer from loading the PanViewer images in the Temporary Internet Folder. webImagePanViewer.DisableBrowserCaching = True webImagePanViewer.ViewerID = mainWebImageViewer.ClientID End Sub
public void WebImageViewer_OpenImageUrl(WebImageViewer mainWebImageViewer, WebImagePanViewer webImagePanViewer) { mainWebImageViewer.InteractiveZoomPercent = 15; mainWebImageViewer.MouseInteractiveMode.LeftButton = ImageViewerMouseInteractiveMode.ZoomIn; mainWebImageViewer.MouseInteractiveMode.RightButton = ImageViewerMouseInteractiveMode.ZoomOut; mainWebImageViewer.ScaleFactor = 1.5; mainWebImageViewer.TileSize = new Size(450, 450); // Prevent the Internet Explorer from loading the viewer images in the Temporary Internet Folder. mainWebImageViewer.DisableBrowserCaching = true; mainWebImageViewer.OpenImageUrl(@"Resources\multipage.tif", 2); webImagePanViewer.HorizontalAlignMode = ImageViewerAlignMode.Center; webImagePanViewer.VerticalAlignMode = ImageViewerAlignMode.Center; webImagePanViewer.RectangleColor = Color.Blue; // Prevent the Internet Explorer from loading the PanViewer images in the Temporary Internet Folder. webImagePanViewer.DisableBrowserCaching = true; webImagePanViewer.ViewerID = mainWebImageViewer.ClientID; }
function WebImageViewer_OpenImageUrl(mainWebImageViewer) { mainWebImageViewer.setInteractiveZoomPercent(15); mainWebImageViewer.getMouseInteractiveMode().setLeftButton(ImageViewerMouseInteractiveMode.ZoomIn); mainWebImageViewer.getMouseInteractiveMode().setRightButton(ImageViewerMouseInteractiveMode.ZoomOut); mainWebImageViewer.setScaleFactor(1.5); mainWebImageViewer.setUseDpi(false); mainWebImageViewer.setTileSize(new ltwfSize(450, 450)); mainWebImageViewer.OpenImageUrl("Resources\\multipage.tif", 2); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2