Visual Basic (Declaration) | |
---|---|
<ToolboxBitmapAttribute()> <DefaultPropertyAttribute("ViewerID")> <ToolboxDataAttribute("<{0}:WebImagePanViewer runat=server Width=220px Height=220px BorderWidth=1px BorderStyle=Solid ></{0}:WebImagePanViewer>")> Public Class WebImagePanViewer Inherits System.Web.UI.WebControls.WebControl Implements IComponent, INotifyPropertyChanged, IDisposable, IAttributeAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IDataBindingsAccessor, IExpressionsAccessor, INamingContainer, IParserAccessor, IPostBackDataHandler, IUrlResolutionService |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As WebImagePanViewer |
C# | |
---|---|
[ToolboxBitmapAttribute()] [DefaultPropertyAttribute("ViewerID")] [ToolboxDataAttribute("<{0}:WebImagePanViewer runat=server Width=220px Height=220px BorderWidth=1px BorderStyle=Solid ></{0}:WebImagePanViewer>")] public class WebImagePanViewer : System.Web.UI.WebControls.WebControl, IComponent, INotifyPropertyChanged, IDisposable, IAttributeAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IDataBindingsAccessor, IExpressionsAccessor, INamingContainer, IParserAccessor, IPostBackDataHandler, IUrlResolutionService |
C++/CLI | |
---|---|
[ToolboxBitmapAttribute()] [DefaultPropertyAttribute("ViewerID")] [ToolboxDataAttribute("<{0}:WebImagePanViewer runat=server Width=220px Height=220px BorderWidth=1px BorderStyle=Solid ></{0}:WebImagePanViewer>")] public ref class WebImagePanViewer : public System.Web.UI.WebControls.WebControl, IComponent, INotifyPropertyChanged, IDisposable, IAttributeAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IDataBindingsAccessor, IExpressionsAccessor, INamingContainer, IParserAccessor, IPostBackDataHandler, IUrlResolutionService |
The WebImagePanViewer is used to display a scaled view of an image, which is also being displayed in the WebImageViewer control at a size that would require scrolling.
The WebImagePanViewer will maintain the images aspect ratio. In the WebImagePanViewer, a colored Pan rect will be displayed to indicate the portion of the image currently being displayed in the WebImageViewer associated with this PanViewer control.
When a user clicks inside the WebImagePanViewer and moves the mouse, while holding down the button, the Pan rect will move with the mouse pointer. Set the Viewer property to a WebImageViewer object to be panned.
To use this control properly, LEADTOOLS binaries must be installed on the server machine.
This Control works only with ASP.NET 2.0.
Be sure that the DLLs in the LEADTOOLS I/O Library are available to your application. There are two ways of doing this:
- Install the DLLs in the application's directory
OR
- Install them in the Global Assembly Cache (GAC). For more information on this method, refer to The Microsoft Gacutil Tool.
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
Leadtools.Web.Controls.WebImagePanViewer
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7