gcode

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 14 Imported by: 0

README

gcode

text and graphic verification 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 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