Documentation ¶
Overview ¶
Package image provides API for decoding images.
Package is used internally by Pi, but it can also be used when writing unit tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct {
Width, Height int
// Palette array is filled with black color (#000000)
// if file has fewer colors than 256.
Palette [256]RGB
// Each pixel is a color from 0 to 255.
// 0th element of slice represent pixel color in top-left corner.
// 1st element is a next pixel on the right and so on.
Pix []byte
}
Image contains information about decoded image.
Click to show internal directories.
Click to hide internal directories.