Esempio n. 1
0
		public static PointCollection GetPoints(ElementBase element)
		{
			return
				element is ElementBaseShape ?
					Normalize(element.GetRectangle().TopLeft, ((ElementBaseShape)element).Points, element.BorderThickness) :
				element is ElementBaseRectangle ?
					Normalize(element.GetRectangle(), element.BorderThickness) :
					new PointCollection();
		}
Esempio n. 2
0
		public static PointCollection GetRealPoints(ElementBase element)
		{
			if (element is ElementBaseShape)
				return ((ElementBaseShape)element).Points;
			else if (element is ElementBaseRectangle)
				return GetPoints(element.GetRectangle());
			return new PointCollection();
		}