Documentation ¶
Index ¶
Constants ¶
View Source
const ( Bit8 = 8 * scalingFactor Bit16 = 16 * scalingFactor Bit32 = 32 * scalingFactor Bit64 = 64 * scalingFactor Bit128 = 128 * scalingFactor )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pixelizer ¶
type Pixelizer struct {
// contains filtered or unexported fields
}
func NewFromConfig ¶
func (*Pixelizer) SetGranularity ¶
SetGranularity sets the Pixelizer Granularity level. s must be a positive int value in range 0 - 128.
func (*Pixelizer) SetMaxImageSize ¶
type SerializablePalette ¶
func GetColorsFromImage ¶
func GetColorsFromImage(img image.Image, count int) (*SerializablePalette, error)
func (*SerializablePalette) MarshalJSON ¶
func (s *SerializablePalette) MarshalJSON() ([]byte, error)
func (*SerializablePalette) UnmarshalJSON ¶
func (s *SerializablePalette) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.