SvgFilterPrimitive.cs 1.21 KB
Newer Older
davescriven's avatar
davescriven committed
1
2
3
4
5
6
7
8
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace Svg.FilterEffects
{
9
    public abstract class SvgFilterPrimitive : SvgElement
davescriven's avatar
davescriven committed
10
    {
11
12
13
14
15
16
        public static readonly string SourceGraphic = "SourceGraphic";
        public static readonly string SourceAlpha = "SourceAlpha";
        public static readonly string BackgroundImage = "BackgroundImage";
        public static readonly string BackgroundAlpha = "BackgroundAlpha";
        public static readonly string FillPaint = "FillPaint";
        public static readonly string StrokePaint = "StrokePaint";
davescriven's avatar
davescriven committed
17

18
19
        [SvgAttribute("in")]
        public string Input
davescriven's avatar
davescriven committed
20
        {
21
22
            get { return this.Attributes.GetAttribute<string>("in"); }
            set { this.Attributes["in"] = value; }
davescriven's avatar
davescriven committed
23
24
        }

25
        [SvgAttribute("result")]
davescriven's avatar
davescriven committed
26
27
        public string Result
        {
28
29
            get { return this.Attributes.GetAttribute<string>("result"); }
            set { this.Attributes["result"] = value; }
davescriven's avatar
davescriven committed
30
31
        }

32
        protected SvgFilter Owner
davescriven's avatar
davescriven committed
33
        {
34
            get { return (SvgFilter)this.Parent; }
davescriven's avatar
davescriven committed
35
36
        }

37
        public abstract Bitmap Process();
davescriven's avatar
davescriven committed
38
39
    }
}