Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrayImage ¶
type GrayImage struct {
Width int
Height int
Pixels []uint8 // row-major, 0=black 255=white
DPI float64
}
GrayImage holds a grayscale representation of an imported image.
func ParseImage ¶
ParseImage loads a PNG or JPEG and converts to 8-bit grayscale.
func (*GrayImage) At ¶
At returns the grayscale value at pixel (x, y). Returns 255 if out of bounds.
Click to show internal directories.
Click to hide internal directories.