Documentation
¶
Overview ¶
Package bitmap support binary image format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ColorModel color.Model = color.ModelFunc(binaryModel)
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct {
// Pix holds the image's pixels, in binary format.
// Each bit represents a pixel: 1 is black, 0 is white.
// The order of the pixels is left to right.
// The pixel at (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*2].
Pix []uint8
// Stride is the Pix stride (in bytes) between vertically adjacent pixels.
Stride int
// Rect is the image's bounds.
Rect image.Rectangle
}
Image is a binary image.
func (*Image) ColorModel ¶
ColorModel implements image.Image.
Click to show internal directories.
Click to hide internal directories.