VerifyCodeAttribute Class

DCSoft.DBUtilityGeneric

VerifyCodeAttribute Class
验证码的相关属性,无法继承该类
Inheritance Hierarchy
SystemObject  DCSoft.Utility.DrawingVerifyCodeAttribute

Namespace: DCSoft.Utility.Drawing
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public sealed class VerifyCodeAttribute

The VerifyCodeAttribute type exposes the following members.

Constructors
  NameDescription
Public methodVerifyCodeAttribute
默认构造函数
Public methodVerifyCodeAttribute(Int32)
构造函数
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Properties
  NameDescription
Public propertyBgColor
提供一组图像背景色,随机选择其中的一种,默认值 Color.White
Public propertyBgNoiseLineColor
背景噪音线的颜色 System.Drawing.Color 结构。 默认值 Color.LightBlue(淡蓝色)
Public propertyBgNoiseLineNum
背景噪音线的数量,默认值 10
Public propertyCodeNum
验证码位数,默认值 4
Public propertyFgNoisePointNum
前景噪音点的数量,默认值 120
Public propertyFontEndColor
表示字体渐变结束色的 System.Drawing.Color 结构。 默认值 Color.DarkCyan(暗青色)
Public propertyFontName
字体名称,默认值 宋体
Public propertyFontSize
字体的全身大小(采用 unit 参数指定的单位)。默认值 18
Public propertyFontStartColor
表示字体渐变起始色的 System.Drawing.Color 结构。 默认值 Color.DarkCyan(暗青色)
Public propertyHasDrawBgNoiseLine
是否画背景噪音线,默认值 false
Public propertyHasDrawFgNoisePoint
是否画前景噪音点(颜色随机生成),默认值 true
Public propertyIsRandomBgLineColor
是否随机生成背景噪音线的颜色,默认值 true
Public propertyStyle
字体的 System.Drawing.FontStyle,默认值 FontStyle.Bold
Top
See Also