Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public static Polygon Scale(Polygon ply, int width, int height)
 {
     return(Polygon.Truncate(PolygonF.Scale(ply._ply, (float)width, (float)height)));
 }