Documentation ¶
Overview ¶
Package legofy provides legolized image of user-defined static images (PNG,JPG)
Index ¶
- Constants
- func LegofyImage(sourceImg image.Image, brickSize int, legoChan chan *LegoImage)
- func LegofyImagePath(imgSrc string, brickSize int, legoChan chan *LegoImage)
- func SaveAsJPEG(name string, img image.Image, quality int)
- func SaveAsPNG(name string, img image.Image, compresLvl png.CompressionLevel)
- type LegoImage
- type Legofy
Constants ¶
View Source
const LEGOS string = `` /* 1248-byte string literal not displayed */
Color Mapping Source
Variables ¶
This section is empty.
Functions ¶
func LegofyImage ¶
This method will legolize image from image.Image
func LegofyImagePath ¶
This method will legolize image from path
func SaveAsJPEG ¶
This method will save the resulting legolized image is JPEG format
Types ¶
Click to show internal directories.
Click to hide internal directories.