Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTooManyColors = fmt.Errorf("too many colors for palette")
ErrTooManyColors is returned when there is too many colors for a palleted image. E.g. Greater than 256
Functions ¶
func ImageToPaletted ¶
ImageToPaletted losslessly converts an image.Image to an image.Paletted if possible.
If the passed image.Image already is an image.Paletted it will be returned as is without modification.
If the passed image.Image contains more than 256 colors a ErrTooManyColors will be returned
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.