Ejemplo n.º 1
0
        /// <inheritdoc/>
        public override void Render(SvgDrawing drawing)
        {
            var normal = new Vector2(NormalX.Value, NormalY.Value);

            drawing.BeginTransform(new Transform(X.Value, Y.Value, normal, normal.Perpendicular));
            Draw(drawing);
            drawing.EndTransform();
        }
Ejemplo n.º 2
0
 /// <inheritdoc/>
 public virtual void Render(SvgDrawing drawing)
 {
     drawing.BeginTransform(new Transform(X.Value, Y.Value, new Vector2(1, 0), new Vector2(0, 1)));
     Draw(drawing);
     drawing.EndTransform();
 }