C# Class Utility.CaptchaHelper

生成随机验证码的类
FileName: CaptchaHelper.cs CLRVersion: 4.0.30319.18444 Author: Devin DateTime: 2016/3/11 22:48:55 GitHub: https://github.com/v5bep7/Utility
Exibir arquivo Open project: v5bep7/Utility

Public Methods

Method Description
CreateRandomCode ( int codeCount ) : string
DrawImage ( string vcode, float fontSize = 14, Color background = default(Color), Color border = default(Color) ) : byte[]

创建验证码图片

Method Details

CreateRandomCode() public static method

public static CreateRandomCode ( int codeCount ) : string
codeCount int
return string

DrawImage() public static method

创建验证码图片
public static DrawImage ( string vcode, float fontSize = 14, Color background = default(Color), Color border = default(Color) ) : byte[]
vcode string 验证码
fontSize float 字体大小
background Color 背景颜色
border Color 边框颜色
return byte[]