Documentation ¶
Index ¶
Constants ¶
View Source
const ( PngImage = 1 JpegImage = 2 )
Variables ¶
View Source
var StdChars = []byte("0123456789")
Functions ¶
This section is empty.
Types ¶
type CImage ¶
func (*CImage) ProductCImage ¶
func (*CImage) WriteToJpeg ¶
WriteTo writes captcha image in PNG format into the given writer.
type CaptchaPool ¶
type CaptchaPool struct {
// contains filtered or unexported fields
}
func NewCaptchaPool ¶
func NewCaptchaPool(width, height, wordLength, poolsize, parallelNum, imageType int) *CaptchaPool
func (*CaptchaPool) GenImage ¶
func (p *CaptchaPool) GenImage()
func (*CaptchaPool) GenRandomWords ¶
func (p *CaptchaPool) GenRandomWords()
func (*CaptchaPool) GetImage ¶
func (p *CaptchaPool) GetImage() *CaptchaBody
func (*CaptchaPool) Stop ¶
func (p *CaptchaPool) Stop()
Click to show internal directories.
Click to hide internal directories.