ASP.NET Pack Programmer's Guide
Canvas Members
Constructors Fields Methods
 


The Canvas class represents a wrapper class for the HTML5 Canvas element.

The following tables list the members exposed by the Canvas type.

 Public Constructors

  Name Description

Canvas

Initializes a new instance of the Canvas class.

 Public Fields

  Name Description

bounds

The object's bounds.

measureUnit

The unit of measure used for logical coordinates.

zoomFactor

The zoom factor used to scale up or down the drawing.

 Public Methods

  Name Description

clientToDoc

Transforms a point from client to document coordinates.

create

Creates and initializes a new Canvas from the specified element. This method is static and can be called without creating an instance of the class.

dispose

Overrides Component.Dispose

docToClient

Transforms a point from document to client coordinates.

getBounds

Gets the underlying Canvas element's bounds.

getLicenseLocation

Gets the URL of the diagram's license file.

getMeasureUnit

Gets the unit of measure used for logical coordinates.

getMinVisibleFontSize

Gets a threshold value that hides text if scaled font sizes become smaller.

getZoomFactor

Gets the zoom factor.

setBounds

Sets the underlying Canvas element's bounds.

setLicenseLocation

Sets the URL of the diagram's license file.

setMeasureUnit

Sets the unit of measure used for logical coordinates.

setMinVisibleFontSize

Sets a threshold value that hides text if scaled font sizes become smaller.

setZoomFactor

Sets the zoom factor.

 See Also

Canvas Class
MindFusion.Drawing Namespace