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


Implements the ICanvas interface using System.Drawing API.

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

 Public Constructors

  Name Description

GdiCanvas

Initializes a new instance of the GdiCanvas class.

 Public Fields

  Name Description

Graphics

Gets or sets the System.Drawing.Graphics instance backing this canvas.

palette

 

Transform

Gets or sets a matrix that transforms geo-coordinates to pixels.

ZoomFactor

Gets or sets the current zoom factor.

 Public Properties

  Name Description

Palette

Gets or sets the current color palette.

 Public Methods

  Name Description

Angle

 

ArrangeLabel

Arranges shape's labels so that they do not overlap specified obstacles.

ClipExclude

Overloaded.  

Distance

 

DrawLabel

Draws a Label.

DrawPoint

Draws a point marker at the specified location.

DrawPolyline

Draws a polyline.

DrawString

Draws a string with the specified attributes.

FillPolygon

Fills a polygon.

GetPixelSize

Gets the size of a pixel at the current zoom level.

GetRotatedBounds

Gets the bounding box of a rotated rectangle.

ResetClip

Resets the current clip region.

SetBrush

Sets the current brush to the one associated with specified map feature.

SetFillColor

Sets the current fill color to the specified color from the palette.

SetHighlightColor

Sets the current fill and line colors to the highlight color associated with this canvas.

SetLineColor

Sets the current line color to the line color associated with this canvas.

SetPen

Sets the current pen to the one associated with specified map feature.

SetTextAlignment

Sets the current text alignment.

UpdateLabel

Updates bounding box of shape's label from shape coordinates.

 Protected Methods

  Name Description

PointAlongLength

Returns a point lying on a polyline that is positioned at a relative position along the polyline's length.

 See Also

GdiCanvas Class
MindFusion.Mapping.WebForms Namespace