File: quant.go

package info (click to toggle)
golang-github-soniakeys-quant 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 140 kB
  • sloc: makefile: 2
file content (16 lines) | stat: -rw-r--r-- 548 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2013 Sonia Keys.
// Licensed under MIT license.  See "license" file in this source tree.

// Quant provides an interface for image color quantizers.
package quant

import "image"

// Quantizer defines a color quantizer for images.
type Quantizer interface {
	// Paletted quantizes an image and returns a paletted image.
	Paletted(image.Image) *image.Paletted
	// Palette quantizes an image and returns a Palette.  Note the return
	// type is the Palette interface of this package and not image.Palette.
	Palette(image.Image) Palette
}