Versions in this module Expand all Collapse all v0 v0.2.33 Apr 25, 2024 Changes in this version + const ALL + const LCHAR + const NUM + const UCHAR + type Captcha struct + func NewCaptcha() *Captcha + func (c *Captcha) AddBackColors(colors ...color.Color) + func (c *Captcha) AddColors(colors ...color.Color) + func (c *Captcha) AddFonts(paths ...string) + func (c *Captcha) Create(num int, option CaptchaType) (*Image, string) + func (c *Captcha) SetDisturbLevel(disturb DisturbLevel) + func (c *Captcha) SetSize(width, height int) + type CaptchaType int + type DisturbLevel int + const HIGH + const MEDIUM + const NONE + const NORMAL + type Image struct + func NewImage(width, height int) *Image + func (i *Image) Base64Encode() string + func (i *Image) DrawLine(x1, y1, x2, y2 int, colr color.Color) + func (i *Image) DrawString(font *truetype.Font, color color.Color, text string, fontSize float64) + func (i *Image) Fill(img image.Image) + func (i *Image) SaveImage(fullPath string) + type Size struct + Height int + Width int