Example #1
0
        public void GlowEffect2()
        {
            var src = GetSourceImage("input.png");

            var effect = new GlowEffect(12, 50, 50);

            effect.Render(src);

            Compare(src, "glow2.png");
        }
Example #2
0
        private void RenderGlowEffect(Graphics gr, GraphicsPath path)
        {
            var e = new GlowEffect()
            {
                OuterGlow = cbOuter.Checked
            };
            var opactity = (byte)(255f * (float)nudOpacity.Value / 100f);

            e.Color = Color.FromArgb(opactity, lbColorPicker.BackColor);
            e.Blur  = (int)nudBlur.Value;
            //e.Distance = (int)nudDistance.Value;

            e.Render(gr, path);
        }