Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPowerOf2Image ¶
IsPowerOf2Image reports wether img is a power-of-2 square image or not.
func Pow2Roundup ¶
Pow2Roundup rounds up to next higher power of 2, or n if n is already a power of 2.
func PowerOf2Image ¶
PowerOf2Image returns a square image which dimension being a power-of-2, it does so by creating such square image with uniform pad color, and copying the pixels of src over it, at point { 0,0}.
Note: if src dimensions is already a power-of-2 square image, it is returned as-is.This is an helper function supports the standard Go image and binimg.Image types.
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package binimg proposes an in-memory binary image format, implementing the image.Image interface, alongside a set of efficient tools to scan rectangular regions of such images.
|
Package binimg proposes an in-memory binary image format, implementing the image.Image interface, alongside a set of efficient tools to scan rectangular regions of such images. |
internal
|
|
Click to show internal directories.
Click to hide internal directories.