C# Class RippleCaptcha.Helper

Datei anzeigen Open project: donma/RippleCaptcha

Public Methods

Method Description
AdjustRippleEffect ( Bitmap src, short nWave ) : Bitmap

水波紋效果

GetCaptcha ( string text, string fontName, string backgroundImagePath, int width, int height, int fontSize, short waterEffect = 10 ) : Bitmap

製作Captcha

Method Details

AdjustRippleEffect() public method

水波紋效果
public AdjustRippleEffect ( Bitmap src, short nWave ) : Bitmap
src System.Drawing.Bitmap
nWave short 坡度
return System.Drawing.Bitmap

GetCaptcha() public method

製作Captcha
public GetCaptcha ( string text, string fontName, string backgroundImagePath, int width, int height, int fontSize, short waterEffect = 10 ) : Bitmap
text string 文字
fontName string 字體名稱
backgroundImagePath string 採樣的背景圖
width int 結果的圖片寬度
height int 結果的圖片高度
fontSize int 字體大小
waterEffect short 增加漣漪複雜度
return System.Drawing.Bitmap