captcha

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: MIT, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PNG

type PNG struct {
	*image.Paletted
	// contains filtered or unexported fields
}

func New

func New(rngKey, sid, digits string, width, height int) *PNG

NewImage returns a new captcha image of the given width and height with the given digits, where each digit must be in range 0-9.

func (*PNG) WriteTo

func (m *PNG) WriteTo(w io.Writer) (int64, error)

WriteTo writes captcha image in PNG format into the given writer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL