Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcMeanColor ¶
CalcMeanColor computes the geometric average of the pixels in a given image.Rectangle.
func DecodeImage ¶
DecodeImage reads an image from a path on the filesystem and returns an image.Image or error
func EncodeImage ¶
EncodeImage writes an image to the filesystem in the given format and returns an error if unsuccessful
Types ¶
type Block ¶
Block represents a group of pixels from the original image that have all been converted to a single color. A Block is a big pixel.
type BlockImage ¶
func Pixelate ¶
func Pixelate(img image.Image, numColors, blockSize int) *BlockImage
Pixelate converts and Image into a BlockImage of the specified block size and number of colors
func (*BlockImage) ToImage ¶
func (p *BlockImage) ToImage() image.Image
ToImage creates an image.Image from the BlockImage
Click to show internal directories.
Click to hide internal directories.