Leadtools.Web Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
ImageViewer Class
See Also  Members  
Leadtools.Web.Controls Namespace : ImageViewer Class




A LEADTOOLS Web ImageViewer control class used to display an image on an ASP.NET 2.0 web page.

Syntax

Visual Basic (Declaration) 
<DefaultPropertyAttribute("ImageUrl")>
<ToolboxDataAttribute("<{0}:ImageViewer runat=server ImageUrl= "" ImageSize="0,0" Width=320px Height=320px BorderWidth=1px BorderStyle=Inset></{0}:ImageViewer>")>
<ToolboxBitmapAttribute()>
Public Class ImageViewer 
   Inherits WebControl
Visual Basic (Usage)Copy Code
Dim instance As ImageViewer
C# 
[DefaultPropertyAttribute("ImageUrl")]
[ToolboxDataAttribute("<{0}:ImageViewer runat=server ImageUrl= "" ImageSize="0,0" Width=320px Height=320px BorderWidth=1px BorderStyle=Inset></{0}:ImageViewer>")]
[ToolboxBitmapAttribute()]
public class ImageViewer : WebControl 
Managed Extensions for C++ 
[DefaultPropertyAttribute("ImageUrl")]
[ToolboxDataAttribute("<{0}:ImageViewer runat=server ImageUrl= "" ImageSize="0,0" Width=320px Height=320px BorderWidth=1px BorderStyle=Inset></{0}:ImageViewer>")]
[ToolboxBitmapAttribute()]
public __gc class ImageViewer : public WebControl 
C++/CLI 
[DefaultPropertyAttribute("ImageUrl")]
[ToolboxDataAttribute("<{0}:ImageViewer runat=server ImageUrl= "" ImageSize="0,0" Width=320px Height=320px BorderWidth=1px BorderStyle=Inset></{0}:ImageViewer>")]
[ToolboxBitmapAttribute()]
public ref class ImageViewer : public WebControl 

Example

Remarks

The ImageViewer can display any image file format supported by web browsers (Jpeg, Gif, Png and Bmp). No other LEADTOOLS binary is required on the Server machine to use this control, since it is based on the HTML <img> tag control.

Set the ImageUrl property to a valid Image Url and set the ImageSize property to the image's size. The ImageViewer control can automatically handle zooming and scrolling.

This Control works only on ASP.NET 2.0.

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
      System.Web.UI.WebControls.WebControl
         Leadtools.Web.Controls.ImageViewer

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also