SvgGaussianBlur.cs 925 Bytes
Newer Older
davescriven's avatar
davescriven committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace Svg.FilterEffects
{
    public class SvgGaussianBlur : SvgFilterPrimitive
    {
        private float _standardDeviation;

        public SvgGaussianBlur(ISvgFilter owner, string inputGraphic)
            : base(owner, inputGraphic)
        {
            
        }

        /// <summary>
        /// The standard deviation for the blur operation.
        /// </summary>
        public float StandardDeviation
        {
            get { return this._standardDeviation; }
            set { this._standardDeviation = value; }
        }

        public override Bitmap Apply()
        {
            Bitmap source = this.Owner.Results[this.In];
            Bitmap blur = new Bitmap(source.Width, source.Height);



            return source;
        }
    }
}