protected override void OnSetCssText(string cssText)
 {
     colorValue = new CssColor(cssText);
     SetPrimitiveType(CssPrimitiveType.RgbColor);
 }
Beispiel #2
0
        public void SetColor(SvgColorType colorType, string rgbColor, string iccColor )
        {
            _colorType = colorType;
            if (rgbColor != null && rgbColor.Length > 0)
            {
                try
                {
                    _rgbColor = new CssColor(rgbColor);
                }
                catch (DomException domExc)
                {
                    throw new SvgException(SvgExceptionType.SvgInvalidValueErr,
                        "Invalid color value: " + rgbColor, domExc);
                }
            }
            else
            {
                _rgbColor = new CssColor("black");
            }

            //TODO--PAUL: deal with ICC colors
        }
 protected override void OnSetCssText(string cssText)
 {
     colorValue = new CssColor(cssText);
     SetPrimitiveType(CssPrimitiveType.RgbColor);
 }