Documentation
¶
Index ¶
- Variables
- func CompareImage(img1 *image.Image, img2 *image.Image) int
- func Exists(path string) (bool, error)
- func IsInBoundaries(img *image.NRGBA, x, y int) bool
- func Max(a, b int) int
- func Min(a, b int) int
- func OpenPng(name string) (*image.Image, error)
- func RemoveContents(dir string) error
- func Save(img image.Image, filename string) (err error)
- func Uint32toUint8(val uint32) uint8
- func WriteImage(w io.Writer, img image.Image, format Format) error
- type Format
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnsupportedFormat means the given image format (or file extension) is unsupported. ErrUnsupportedFormat = errors.New("imaging: unsupported image format") )
Functions ¶
func CompareImage ¶
CompareImage calcule le nombre de pixel de différence entre deux images
func RemoveContents ¶
func Save ¶
Save saves the image to file with the specified filename. The format is determined from the filename extension: "jpg" (or "jpeg"), "png", "gif", "tif" (or "tiff") and "bmp" are supported.
func Uint32toUint8 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.