Versions in this module Expand all Collapse all v1 v1.0.2 Jan 28, 2022 Changes in this version + var Gray3Model = color.ModelFunc(gray3Model) + var WBModel = color.ModelFunc(bwModel) + type Gray3 uint8 + const Gray3Black + const Gray3Gray + const Gray3White + func (g Gray3) RGBA() (uint32, uint32, uint32, uint32) + func (g Gray3) String() string + type Gray3Image struct + Pix []byte + Rect image.Rectangle + func NewGray3Image(r image.Rectangle) *Gray3Image + func (i *Gray3Image) At(x, y int) color.Color + func (i *Gray3Image) Bounds() image.Rectangle + func (i *Gray3Image) ColorModel() color.Model + func (i *Gray3Image) Set(x, y int, c color.Color) + type WB uint8 + const WBBlack + const WBWhite + func (c WB) RGBA() (uint32, uint32, uint32, uint32) + func (c WB) String() string + type WBImage struct + Pix []byte + Rect image.Rectangle + func NewWBImage(r image.Rectangle) *WBImage + func (i *WBImage) At(x, y int) color.Color + func (i *WBImage) Bounds() image.Rectangle + func (i *WBImage) ColorModel() color.Model + func (i *WBImage) Set(x, y int, c color.Color)