Telogis.GeoBase.Canvas.Shapes.Rect |
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.
Name | Description |
---|---|
Rect(canvas) | Arguments
|
Name | Type | Description |
---|---|---|
p1 | Point | 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. |
p2 | Point | 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. |
r | Number | The radius for rounded corners, defaults to 0. |