Versions in this module Expand all Collapse all v1 v1.0.3 Apr 15, 2024 v1.0.2 Dec 27, 2023 v1.0.1 Apr 2, 2023 v1.0.0 Mar 13, 2023 Changes in this version + var JSONMarshal = json.Marshal + var JSONMarshalIndent = json.MarshalIndent + func ColorToString(c color.Color) string + func Diff(img1, img2 *image.RGBA) (*image.RGBA, error) + func Load(pathFileImg string) (*image.RGBA, error) + func Open(filename string) (image.Image, error) + func Save(filename string, img image.Image, encoder Encoder) error + type Encoder func(io.Writer, image.Image) error + func BMPEncoder() Encoder + func JPEGEncoder(quality int) Encoder + func PNGEncoder() Encoder + type Histogram struct + A []int + B []int + G []int + R []int + func AsHistogram(imgRGBA *image.RGBA) Histogram + func NewHistogram() *Histogram + func (h *Histogram) InJSON(perLine bool) (string, error) + type PixInfo struct + A int + B int + Count int + G int + R int + func (p PixInfo) GetKey() string + func (p PixInfo) MarshalJSON() ([]byte, error) + type PixInfoList []PixInfo + func ByOccurrence(imgRGBA *image.RGBA) PixInfoList + func (p PixInfoList) InJSON(perLine bool) (string, error) + func (p PixInfoList) Len() int + func (p PixInfoList) Less(i, j int) bool + func (p PixInfoList) Swap(i, j int) + type PixKey string + func (k PixKey) GetAlpha() int + func (k PixKey) GetBlue() int + func (k PixKey) GetGreen() int + func (k PixKey) GetRed() int + func (k PixKey) NewPixInfo(count int) PixInfo v1.0.0-beta3 Jan 20, 2022 v1.0.0-beta2 Jan 7, 2022 v1.0.0-beta Jan 7, 2022