A LEADTOOLS Web ImageViewer control class used to display an image on an ASP.NET 2.0 web page.
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 |
---|---|
|
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 |
Refer to the tutorial, Using the ImageViewer on server side.
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.
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
Leadtools.Web.Controls.ImageViewer
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