Documentation ¶
Overview ¶
Package bitmap provides a compact bitmap image type and a paletted bitmap view of another image.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitmap ¶
Bitmap is a compact bitmap image with a two-color palette.
func (*Bitmap) ColorModel ¶
ColorModel returns the bitmap's palette.
type PalettedBitmap ¶
PalettedBitmap is a view of another image, rendered down to the nearest of two colors.
func NewPaletted ¶
func NewPaletted(img image.Image, off, on color.Color) *PalettedBitmap
NewPaletted adapts an arbitrary image to a readable bitmap based on a two-color palette.
func (*PalettedBitmap) BitAt ¶
func (p *PalettedBitmap) BitAt(x, y int) bool
BitAt returns whether the bit at a point more closely resembles the "on" color in the palette.
func (*PalettedBitmap) Bounds ¶
func (p *PalettedBitmap) Bounds() image.Rectangle
Bounds returns the bounds of the underlying image.
Click to show internal directories.
Click to hide internal directories.