Click or drag to resize

Polygon Class

A polygon shape used for creating a polygonal hotspot.
Inheritance Hierarchy
SystemObject
  Deltabit.WinFormsPolygon

Namespace:  Deltabit.WinForms
Assembly:  Deltabit.HotImage (in Deltabit.HotImage.dll) Version: 2.1.1.0 (2.1.1)
Syntax
public class Polygon : IShape

The Polygon type exposes the following members.

Constructors
  NameDescription
Public methodPolygon
Default constructor for a Polygon.
Top
Properties
  NameDescription
Public propertyBoundingRec
Gets the rectangle that surrounds the boundry of the polygon.
Public propertyParentHotspot
Gets or sets the Parent Hotspot that owns the polygon.
Public propertyPoints
Gets or sets the points used to create the polygon.
Top
Methods
  NameDescription
Public methodClone
Creates a new instance of the polygon and copies the data to the new instance.
Public methodCreatePolygon
Converts the shape to a polygon representation of the shape.
Public methodDraw
This method draws the hotspot shape onto the HotImage.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetBoundingRec
Gets the rectangle that surrounds the boundry of the polygon.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMidpoint
Computes the midpoint of the polygon.
Public methodMove
Moves the polygon to a new position.
Public methodPointInShape
Determines if a point falls within the given polygon.
Public methodRescale
Rescales and repositions the polygon according to the parameters.
Public methodShapeFromString
Converts a string representation of a polygon to the polygon object and assigns it to this instance.
Public methodShapeToString
Converts the current polygon to a string representation of the shape.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also