public CaptchaImage() { this._rand = new Random(); this._fontWarp = CaptchaImage.FontWarpFactor.Low; this._backgroundNoise = CaptchaImage.BackgroundNoiseLevel.Low; this._lineNoise = CaptchaImage.LineNoiseLevel.None; this._width = 180; this._height = 40; this._randomTextLength = 5; this._fontFamilyName = ""; this._fontWhitelist = "arial;courier new;estrangelo edessa;lucida console;lucida sans unicode;mangal;palatino linotype;sylfaen;tahoma;trebuchet ms;verdana"; this._randomText = this.GenerateRandomText(); this._generatedAt = DateTime.Now; this._guid = Guid.NewGuid().ToString(); }
public CaptchaImage() { this._rand = new Random(); this._fontWarp = CaptchaImage.FontWarpFactor.Low; this._backgroundNoise = CaptchaImage.BackgroundNoiseLevel.Low; this._lineNoise = CaptchaImage.LineNoiseLevel.None; this._width = 180; this._height = 50; this._randomTextLength = 5; this._randomTextChars = "ACDEFGHJKLNPQRTUVXYZ2346789"; this._fontFamilyName = ""; this._fontWhitelist = "arial;arial black;comic sans ms;courier new;estrangelo edessa;franklin gothic medium;georgia;lucida console;lucida sans unicode;mangal;microsoft sans serif;palatino linotype;sylfaen;tahoma;times new roman;trebuchet ms;verdana"; this._randomText = this.GenerateRandomText(); this._generatedAt = DateTime.Now; this._guid = Guid.NewGuid().ToString(); }