Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrImageSizesNotMatch = errors.New("image sizes do not match")
Functions ¶
func EnableDiffMask ¶
func EnableDiffMask(o *MatchOptions)
func IncludeAntiAlias ¶
func IncludeAntiAlias(o *MatchOptions)
func MatchPixel ¶
func MatchPixel(a, b image.Image, opts ...MatchOption) (int, error)
Types ¶
type MatchOption ¶
type MatchOption func(*MatchOptions)
func Alpha ¶
func Alpha(alpha float64) MatchOption
func AntiAliasedColor ¶
func AntiAliasedColor(c color.Color) MatchOption
func DiffColor ¶
func DiffColor(c color.Color) MatchOption
func DiffColorAlt ¶
func DiffColorAlt(c color.Color) MatchOption
func Threshold ¶
func Threshold(threshold float64) MatchOption
func WriteTo ¶
func WriteTo(img *image.Image) MatchOption
type MatchOptions ¶
type MatchOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.