Here are the examples of the csharp api class CaptchaLib.CaptchaImage.GetRandom(System.Drawing.Point) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
Project: MvcCaptchaLib
Source File: CaptchaImage.cs
Source File: CaptchaImage.cs
Color GetRandomColor(Point range) { if (IsColoured) return Color.FromArgb(GetRandom(range), GetRandom(range), GetRandom(range)); int c = GetRandom(range); return Color.FromArgb(c, c, c); }
0
2. Example
Project: MvcCaptchaLib
Source File: CaptchaImage.cs
Source File: CaptchaImage.cs
Bitmap PrintChar(string s) { var b = new Bitmap(56, 56); var g = Graphics.FromImage(b); var f = new Font(new Font("Times", 30), FontStyle.Bold); Brush br = new SolidBrush(GetRandomColor(FgColorRange)); g.TranslateTransform(-20, -20, MatrixOrder.Append); g.RotateTransform(GetRandom(Angle), MatrixOrder.Append); g.TranslateTransform(20, 20, MatrixOrder.Append); g.DrawString(s, f, br, new PointF(0, 0)); return b; }
0
3. Example
Project: MvcCaptchaLib
Source File: CaptchaImage.cs
Source File: CaptchaImage.cs
void PrintChars(Graphics g, string s) { if (string.IsNullOrEmpty(s)) return; /n ..... /n //View Source file for more details /n }