Documentation ¶
Index ¶
- Variables
- func Abs(i int) int
- func Decode(file string) (image.Image, error)
- func DecodeBytes(bs []byte) (image.Image, error)
- func Distance(a image.Image, b image.Image) (int, error)
- func Rect(img draw.Image, r image.Rectangle, c color.Color)
- func Save(img image.Image, file string) error
- func SubImage(img image.Image, r image.Rectangle) (image.Image, error)
- func ToGray(img image.Image) image.Image
- type Dot
- type DotSet
- type Dots
- type Match
- type StringSet
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorNotFound = errors.New("没找到")
ErrorNotFound 没找到.
View Source
var ErrorSize = errors.New("目标图片小于模板图片")
ErrorSize 图片尺寸错误.
View Source
var ErrorType = errors.New("不支持的图片类型")
ErrorType 不支持的图片类型.
Functions ¶
func DecodeBytes ¶ added in v1.0.1
DecodeBytes 字节转换图片.
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.