scale

fun scale(geometry: Geometry, scaleX: Double, scaleY: Double, origin: Point? = null): Geometry

Scales the given geometry by the specified factors from the specified origin point. If the origin Point has a different SpatialReference than that of the geometry parameter, the point will be reprojected before the geometry is scaled, using the default transformation.

Scaling a Point using the same location for the origin parameter returns a Point with the same values as the input.

Positive scale factors greater than 1 increase the size of the GeometryEditor.geometry, and positive factors between 0 and 1 reduce the size of the geometry. 0 or negative scale factors produce a geometry reflected across the axes of the origin point. Negative factors less than -1 both reflect and increase the size of the geometry, and negative factors between -1 and 0 both reflect and reduce the size of the geometry. Scale factors of -1 reflect the geometry across the axes of the origin point without changing the size.

Supports true curves.

Return

A new geometry constructed by scaling the input geometry by the specified factors from the specified origin point.

Since

200.2.0

See also

(Geometry, Double, Double)

(Geometry, Double, Point)

GeometryEditor.scaleSelectedElement

(Double, Double, Point)