MindFusion WinForms Programmer's Guide
GdiCanvas Members
Constructors 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 Properties

  Name Description

Graphics

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

Palette

Gets or sets the current color palette.

Transform

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

ZoomFactor

Gets or sets the current zoom factor.

 Public Methods

  Name Description

ArrangeLabel

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

ClipExclude

Overloaded.  

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.

 See Also

GdiCanvas Class
MindFusion.Mapping.WinForms Namespace