Example #1
0
        public static float GetPXLength(string valueText)
        {
            float         t_value = 0.0f;
            SVGLengthType t_type  = SVGLengthType.Unknown;

            SVGLengthConvertor.ExtractType(valueText, ref t_value, ref t_type);
            return(SVGLengthConvertor.ConvertToPX(t_value, t_type));
        }
Example #2
0
        public SVGLength(string valueText)
        {
            float         t_value = 0.0f;
            SVGLengthType t_type  = SVGLengthType.Unknown;

            SVGLengthConvertor.ExtractType(valueText, ref t_value, ref t_type);
            _unitType = t_type;
            _valueInSpecifiedUnits = t_value;
            _value = SVGLengthConvertor.ConvertToPX(_valueInSpecifiedUnits, _unitType);
        }
Example #3
0
 public void NewValueSpecifiedUnits(float valueInSpecifiedUnits)
 {
     _unitType = (SVGLengthType)0;
     _valueInSpecifiedUnits = valueInSpecifiedUnits;
     _value = SVGLengthConvertor.ConvertToPX(_valueInSpecifiedUnits, _unitType);
 }
Example #4
0
 public SVGLength(float valueInSpecifiedUnits)
 {
     _unitType = SVGLengthType.Number;
     _valueInSpecifiedUnits = valueInSpecifiedUnits;
     _value = SVGLengthConvertor.ConvertToPX(_valueInSpecifiedUnits, _unitType);
 }
Example #5
0
 public SVGLength(SVGLengthType unitType, float valueInSpecifiedUnits)
 {
     _unitType = unitType;
     _valueInSpecifiedUnits = valueInSpecifiedUnits;
     _value = SVGLengthConvertor.ConvertToPX(_valueInSpecifiedUnits, _unitType);
 }