SvgPaintServer.cs 806 Bytes
Newer Older
davescriven's avatar
davescriven committed
1
2
3
4
5
6
7
8
9
10
11
12
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace Svg
{
    [TypeConverter(typeof(SvgPaintServerFactory))]
    public abstract class SvgPaintServer : SvgElement
    {
13
        public static readonly SvgPaintServer None = new SvgColourServer();
davescriven's avatar
davescriven committed
14
15
16
17
18
19

        public SvgPaintServer()
        {
            
        }

20
        protected override void Render(SvgRenderer renderer)
davescriven's avatar
davescriven committed
21
22
23
24
25
26
27
28
29
30
31
32
        {
            // Never render paint servers or their children
        }

        public abstract Brush GetBrush(SvgGraphicsElement styleOwner, float opacity);

        public override string ToString()
        {
            return String.Format("url(#{0})", this.ID);
        }
    }
}