Versions in this module Expand all Collapse all v1 v1.1.0 Jun 7, 2018 v1.0.0 Jun 3, 2018 Changes in this version + const DITHER_MAX + const DITHER_MIN + const QUALITY_BEST + const QUALITY_GOOD + const QUALITY_WORST + const SPEED_DEFAULT + const SPEED_FASTEST + const SPEED_SLOWEST + var ErrAborted = errors.New("Aborted") + var ErrBitmapNotAvailable = errors.New("Bitmap is not available") + var ErrBufferTooSmall = errors.New("Buffer is too small") + var ErrInvalidPointer = errors.New("Invalid pointer") + var ErrOutOfMemory = errors.New("Out of memory") + var ErrQualityTooLow = errors.New("Quality too low") + var ErrUnknown = errors.New("Unknown error") + var ErrUnsupported = errors.New("Unsupported") + var ErrValueOutOfRange = errors.New("Value is out of range") + func GetVersion() (major, minor, patch int) + func GetVersionString() string + func NRGBA(col color.Color) (r, g, b, a byte) + type Attributes struct + func CreateAttributes() *Attributes + func (att *Attributes) AddColorsToHistogram(hist *Histogram, entries []HistogramEntry, gamma float64) error + func (att *Attributes) AddImageFixedColor(img *Image, col color.Color) error + func (att *Attributes) AddImageToHistogram(hist *Histogram, img *Image) error + func (att *Attributes) CopyAttribute() *Attributes + func (att *Attributes) CreateHistogram() *Histogram + func (att *Attributes) CreateImage(img image.Image, gamma float64) *Image + func (att *Attributes) CreateImageBuffer(rgba []byte, width, height int, gamma float64) *Image + func (att *Attributes) CreateImageBufferRows(rgbaRows [][]byte, width, height int, gamma float64) *Image + func (att *Attributes) GetImageHeight(img *Image) int + func (att *Attributes) GetImageWidth(img *Image) int + func (att *Attributes) GetMaxColors() int + func (att *Attributes) GetMinPosterization() int + func (att *Attributes) GetOutputGamma(res *Result) float64 + func (att *Attributes) GetPalette(res *Result) color.Palette + func (att *Attributes) GetQuality() (min, max int) + func (att *Attributes) GetQuantizationError(res *Result) float64 + func (att *Attributes) GetQuantizationQuality(res *Result) int + func (att *Attributes) GetRemappingError(res *Result) float64 + func (att *Attributes) GetRemappingQuality(res *Result) int + func (att *Attributes) GetSpeed() int + func (att *Attributes) QuantizeHistogram(hist *Histogram) (res *Result, err error) + func (att *Attributes) QuantizeImage(img *Image) (res *Result, err error) + func (att *Attributes) Release() + func (att *Attributes) SetDitheringLevel(res *Result, ditherLevel float32) error + func (att *Attributes) SetImageBackground(img *Image, background *Image) error + func (att *Attributes) SetImageImportanceMap(img *Image, importanceMap []byte) error + func (att *Attributes) SetLastIndexTransparent(set bool) + func (att *Attributes) SetMaxColors(colors int) error + func (att *Attributes) SetMinPosterization(bits int) error + func (att *Attributes) SetOutputGamma(res *Result, gamma float64) error + func (att *Attributes) SetQuality(min, max int) error + func (att *Attributes) SetSpeed(speed int) error + func (att *Attributes) WriteRemappedImage(res *Result, img *Image) (imgOut image.Image, err error) + func (att *Attributes) WriteRemappedImageBuffer(res *Result, img *Image) (buf []byte, err error) + func (att *Attributes) WriteRemappedImageBufferRows(res *Result, img *Image, rows [][]byte) (rowsOut [][]byte, err error) + type Histogram struct + type HistogramEntry struct + Color color.Color + Count uint + type Image struct + type Result struct