Beispiel #1
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 13JUN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 private Rectangle GetCachedBounds()
 {
     if (_cachedBounds != null)
     {
         return _cachedBounds;
     }
     Rectangle r = new Rectangle();
     if (_curves.Count > 0)
     {
         Curve c = (Curve)_curves[0];
         // First point is always an order 0 curve (moveto)
         r.SetRect((int)(c.GetX0() + .5),
                 (int)(c.GetY0() + .5), 0, 0);
         for (int i = 1; i < _curves.Count; i++)
         {
             ((Curve)_curves[i]).Enlarge(r);
         }
     }
     return (_cachedBounds = r);
 }