Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Resample ¶
Resample returns a resampled copy of the image slice r of m. The returned image has width w and height h.
func ResizeNRGBA ¶
ResizeNRGBA returns a scaled copy of the RGBA image slice r of m. The returned image has width w and height h.
Types ¶
type Code ¶
type Code struct { Bitmap []byte // 1 is black, 0 is white Size int // number of pixels on a side Stride int // number of bytes per row Scale int // number of image pixels per QR pixel }
A Code is a square pixel grid. It implements image.Image and direct PNG encoding.
Click to show internal directories.
Click to hide internal directories.