Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Mashup ¶
Mashup creates a color mashup of src and dst by computing their most prominent colors. Most prominent colors in dst will be replaced by the most prominent colors of src.
Specify the maximum amount of colors that should be replaced using the maxColors parameter. If the amount of colors in either src or dst is less than the maxColors value, this amount will become the maximum.
Additionally, if the src and dst are not of the same type, both formats are registered.
Types ¶
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
func NewCustomInput ¶
func NewCustomInput(r io.Reader, name, magic string, decodeFunc DecodeFunc, decodeConfigFunc DecodeConfigFunc) *Input
NewCustomInput creates a new Input for types not supported by this library
func NewJPEGInput ¶
NewJPEGInput creates a new Input for JPEGs
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
func NewCustomOutput ¶
func NewCustomOutput(w io.Writer, encodeFunc EncodeFunc) *Output
NewCustomOutput creates a new Output for types not supported by this library
func NewJPEGOutput ¶
NewJPEGOutput creates a new Output for JPEGs with the given quality
func NewPNGOutput ¶
NewPNGOutput creates a new Output for PNGs