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);
        }