Click or drag to resize

Telogis.GeoBase.Canvas.Shapes.Rect

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Rect Class

Rect inherits from Canvas.Shapes.AbstractShape.

Represents a rectangle of standard (horizontal-vertical) orientation, as displayed in a Canvas renderer. This should not be constructed explicitly, but rather generated as the result of a call to Canvas.rect.

Constructor
NameDescription
Rect(canvas)

Arguments

Properties
NameTypeDescription
p1Point

Either the pixel coordinates of the first corner of the rectangle, relative to the upper-left corner of the canvas area, or a LatLon. p1 and p2 must of the same type.

p2Point

Either the pixel coordinates of the second corner of the rectangle, relative to the upper-left corner of the canvas area or a LatLon. p1 and p2 must of the same type.

rNumber

The radius for rounded corners, defaults to 0.