CaptchaLib.CaptchaImage.CreateBackground(System.Drawing.Graphics)

Here are the examples of the csharp api class CaptchaLib.CaptchaImage.CreateBackground(System.Drawing.Graphics) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: MvcCaptchaLib
Source File: CaptchaImage.cs
Bitmap CreateCaptchaImage(int width, int height, string s)
        {
            var b = new Bitmap(width, height);
            var g = Graphics.FromImage(b);

            CreateBackground(g);
            PrintChars(g, s);
            CreateNoise(g);

            g.Dispose();
            return b;
        }