Ejemplo n.º 1
0
 /// <summary>
 /// Clears existing transformation instructions and sets isomentric 3D transformation
 /// </summary>
 /// <param name="element">The element.</param>
 /// <param name="pitch">The pitch.</param>
 /// <returns>Reference to the element</returns>
 public static svgGraphicElementBase isometricTransformation(this svgGraphicElementBase element, Double pitch = 0.7)
 {
     element.attributes.Remove(ATT_TRANSFORMATION);
     element.rotate(45, textCursorZoneCorner.center);
     element.scale(1, pitch);
     return(element);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Rotates the element for specified angle.
        /// </summary>
        /// <param name="element">The element.</param>
        /// <param name="angle">The angle.</param>
        /// <param name="pivot">The pivot.</param>
        /// <returns></returns>
        public static svgGraphicElementBase rotate(this svgGraphicElementBase element, Int32 angle, textCursorZoneCorner pivot)
        {
            var p = element.point.GetCornerPoint(pivot);

            return(element.rotate(angle, p.x, p.y));
        }