Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregationType ¶
type AggregationType uint8
AggregationType specifies the type of aggregation to be done
const ( Mode AggregationType = iota // pick the highest priority value Mean // weighted average all values )
type MedianCutQuantizer ¶
type MedianCutQuantizer struct { // The type of Aggregation to be used to find final colors Aggregation AggregationType // The Weighting function to use on each pixel Weighting func(image.Image, int, int) uint32 // Whether need to add a transparent entry after conversion ReserveTransparent bool }
MedianCutQuantizer implements the go draw.Quantizer interface using the Median Cut method
func (*MedianCutQuantizer) QuantizeMultiple ¶
QuantizeMultiple quantizes several images at once to a palette and returns the palette
Click to show internal directories.
Click to hide internal directories.