Versions in this module Expand all Collapse all v1 v1.0.1 Jun 26, 2023 Changes in this version + var VERSION = "v1.0.1" + func New() (string, string, error) + type Bilinear struct + func (Bilinear) RGBA(src *image.RGBA, x, y float64) color.RGBA + type BilinearSrc struct + type Captcha struct + func (c *Captcha) AddFont(path string) error + func (c *Captcha) AddFontFromBytes(contents []byte) error + func (c *Captcha) Create(num int, t StrType) (*Image, string, error) + func (c *Captcha) CreateCustom(str string) (*Image, error) + func (c *Captcha) SetBkgColor(colors ...color.Color) + func (c *Captcha) SetDisturbance(d DisturbLevel) + func (c *Captcha) SetFont(paths ...string) error + func (c *Captcha) SetFrontColor(colors ...color.Color) + func (c *Captcha) SetSize(w, h int) + type DisturbLevel int + const HIGH + const MEDIUM + const NORMAL + type Image struct + func NewImage(w, h int) *Image + func (img *Image) DrawCircle(xc, yc, r int, fill bool, c color.Color) + func (img *Image) DrawLine(x1, y1, x2, y2 int, c color.Color) + func (img *Image) DrawString(font *truetype.Font, c color.Color, str string, fontsize float64) error + func (img *Image) FillBkg(c image.Image) + func (img *Image) Rotate(angle float64) image.Image + type StrType int + const ALL + const CLEAR + const LOWER + const NUM + const UPPER