gcaptcha

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: MIT Imports: 15 Imported by: 0

README

gcaptcha

golang captcha code

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGridImage

func NewGridImage(count int, datas []*GridItem) *gridImage

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * 获取网格图实例 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Types

type GridItem

type GridItem struct {
	Title          string
	Path           string
	Words          []string
	Filenames      []int
	SelectedIndexs []int
}

================================================================================ * 网格图片 * qq group: 582452342 * email : 2091938785@qq.com * author : 美丽的地球啊 - mliu * ================================================================================

type IImage

type IImage interface {
	GetText() []string
	GetImage() ([]byte, error)
	SetOption(ImageOption)
}

================================================================================ * 五线谱图片 * qq group: 582452342 * email : 2091938785@qq.com * author : 美丽的地球啊 - mliu * ================================================================================

func NewMusicImage

func NewMusicImage(title string, texts []string, head string, count int) IImage

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * 初始化五线谱图 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

func NewTextImage

func NewTextImage(title string, texts []string, count int) IImage

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * 初始化文字图 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

type ImageOption

type ImageOption struct {
	HeaderHeight int
	CellWidth    int
	CellHeight   int
	Gap          int
	Padding      int
	Backgroud    string
	FontPath     string
	FontSize     float64
}

================================================================================ * 五线谱图片 * qq group: 582452342 * email : 2091938785@qq.com * author : 美丽的地球啊 - mliu * ================================================================================

Jump to

Keyboard shortcuts

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