• G Money's avatar
    - Made Deepcopy change to all elements to allow for duplicating part of the Svg document tree · 094c0b1a
    G Money authored
    - Changes to get texts displaying bold / normal weight
    - Changes to get textspans work correctly
    - Made (semi-hardcoded) document metadata section - allow reading and regurgitating metdata tag from an original source document
    - Included image
    - Modified paths to allow for scientific notation
    - Included ability to have markers for path ends (arrow ends etc)
    094c0b1a
SvgShear.cs 1.36 KiB
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing.Drawing2D;
using System.Globalization;
namespace Svg.Transforms
{
    /// <summary>
    /// The class which applies the specified shear vector to this Matrix.
    /// </summary>
    public sealed class SvgShear : SvgTransform
        private float shearFactorX;
        private float shearFactorY;
        public float X
            get { return this.shearFactorX; }
            set { this.shearFactorX = value; }
        public float Y
            get { return this.shearFactorY; }
            set { this.shearFactorY = value; }
        public override Matrix Matrix
            get
                Matrix matrix = new Matrix();
                matrix.Shear(this.X, this.Y);
                return matrix;
        public override string WriteToString()
            return string.Format(CultureInfo.InvariantCulture, "shear({0}, {1})", this.X, this.Y);
        public SvgShear(float x) : this(x, x) { }
        public SvgShear(float x, float y)
            this.shearFactorX = x;
            this.shearFactorY = y;
		public override object Clone()
			return new SvgShear(this.X, this.Y);