BitmapViewer Class

This client-side class corresponds to the BitmapViewer server-side control and gives an opportunity to obtain access to its primary members in JavaScript.

Namespace: GraphicsMill
Assembly: Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)

Syntax

Java Script
GraphicsMill.BitmapViewer = function();

Type.createClass(
	'GraphicsMill.BitmapViewer',
	GraphicsMill.BaseViewer);

Remarks

Using this client-side class you can access the bitmap displayed on the page. It is convenient when you need to calculate some values in JavaScript which depend on the displayed bitmap parameters. Parameters of the displayed bitmap can be got with bitmap property, which returns an instance of the client-side Bitmap class.

The displayed bitmap can be aligned in different ways inside the control with client-side viewportAlignment property.

Also you can resize the displayed image manually or automatically with zoom and zoomMode client-side properties.

The position of scroll bars can be changed in JavaScript programmatically. Current scroll bars position is specified with scrollingPosition property.

To attach rubberbands and navigators to the control in JavaScript you should use rubberband and navigator properties.

You can add control event listeners (such as workspaceClick, workspaceChanged, scrolled and zoomed) in JavaScript.

Inheritance Hierarchy

Sys..Component
+ Sys.UI..Control
+ GraphicsMill..BaseViewer
+ GraphicsMill..BitmapViewer

See Also

Reference