Scale(Geometry, Double, Double, MapPoint)
Scales the given geometry by the specified factors from the specified origin point.
public static Geometry Scale(this Geometry geometry, double scaleX, double scaleY, MapPoint origin = null)
The geometry to scale.
The scale factor along the x-axis. It can be positive or negative. It cannot be a non-numeric value.
The scale factor along the y-axis. It can be positive or negative. It cannot be a non-numeric value.
The point around which the geometry will be scaled. If
A new geometry constructed by scaling the input geometry by the specified factors from the specified origin point.
origin has a different SpatialReference than that of the
the point will be reprojected before the geometry is scaled, using the default transformation.
Positive scale factors greater than 1 increase the size of the
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.
Platforms and versions
|.NET Standard 2.0||200.3|