public virtual void Scale(float width, float height) { PolygonF scalePly = PolygonF.Scale(this, width, height); this.Clear(); this._pnts.AddRange(scalePly._pnts.ToArray()); if (this._preCalcBBox) { this.UpdateMinMax(this._pnts); } scalePly.Clear(); }
public static Polygon Scale(Polygon ply, int width, int height) { return(Polygon.Truncate(PolygonF.Scale(ply._ply, (float)width, (float)height))); }