예제 #1
0
        //==========================================================================
        public SvgStopElement(SvgDocument document, SvgBaseElement parent, XElement stopElement)
            : base(document, parent, stopElement)
        {
            var offset_attribute = stopElement.Attribute("offset");

            if (offset_attribute != null)
            {
                Offset = SvgLength.Parse(offset_attribute.Value);
            }

            var stop_color_attribute = stopElement.Attribute("stop-color");

            if (stop_color_attribute != null)
            {
                Color = SvgColor.Parse(stop_color_attribute.Value);
            }

            var stop_opacity_attribute = stopElement.Attribute("stop-opacity");

            if (stop_opacity_attribute != null)
            {
                Opacity = SvgLength.Parse(stop_opacity_attribute.Value);
            }
        }
예제 #2
0
 //==========================================================================
 public SvgColorPaint(SvgColor color) => Color = color;
예제 #3
0
 //==========================================================================
 public SvgColorPaint(SvgColor color)
 {
     Color = color;
 }