C# 클래스 SenseNet.Portal.UI.Controls.Captcha.CaptchaImage

파일 보기 프로젝트 열기: maxpavlov/FlexNet 1 사용 예제들

공개 메소드들

메소드 설명
CaptchaImage ( ) : System
RenderImage ( ) : Bitmap

Forces a new Captcha image to be generated using current property value settings.

비공개 메소드들

메소드 설명
AddLine ( Graphics graphics1, Rectangle rect ) : void

Add variable level of curved lines to the image

AddNoise ( Graphics graphics1, Rectangle rect ) : void

Add a variable level of graphic noise to the image

GenerateImagePrivate ( ) : Bitmap

Renders the CAPTCHA image

GenerateRandomText ( ) : string

generate random text for the CAPTCHA

GetFont ( ) : Font

Returns the CAPTCHA font in an appropriate size

RandomFontFamily ( ) : string

Returns a random font family from the font whitelist

RandomPoint ( Rectangle rect ) : PointF

Returns a random point within the specified rectangle

RandomPoint ( int xmin, int xmax, int ymin, int ymax ) : PointF

Returns a random point within the specified x and y ranges

TextPath ( string s, Font f, Rectangle r ) : GraphicsPath

Returns a GraphicsPath containing the specified string and font

WarpText ( GraphicsPath textPath, Rectangle rect ) : void

Warp the provided text GraphicsPath by a variable amount

메소드 상세

CaptchaImage() 공개 메소드

public CaptchaImage ( ) : System
리턴 System

RenderImage() 공개 메소드

Forces a new Captcha image to be generated using current property value settings.
public RenderImage ( ) : Bitmap
리턴 System.Drawing.Bitmap