Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Gray3Model = color.ModelFunc(gray3Model)
Gray3Model is color model for white, gray or black color.
View Source
var WBModel = color.ModelFunc(bwModel)
WBModel is color model for white or black color.
Functions ¶
This section is empty.
Types ¶
type Gray3 ¶
type Gray3 uint8
Gray3 implements a 3 kinds of gray color.
type Gray3Image ¶
type Gray3Image struct { // Pix holds images pixels Pix []byte // Rect is image.Rectangle Rect image.Rectangle }
Image is a Gray3 image
func NewGray3Image ¶
func NewGray3Image(r image.Rectangle) *Gray3Image
NewImage returns gray3.Image instance.
func (*Gray3Image) Bounds ¶
func (i *Gray3Image) Bounds() image.Rectangle
Bounds implements draw.Image
func (*Gray3Image) ColorModel ¶
func (i *Gray3Image) ColorModel() color.Model
ColorModel implements draw.Image
type WB ¶
type WB uint8
WB implements a 3 kinds of gray color.
type WBImage ¶
type WBImage struct { // Pix holds images pixels Pix []byte // Rect is image.Rectangle Rect image.Rectangle }
Image is a Gray3 image
func NewWBImage ¶
NewImage returns gray3.Image instance.
func (*WBImage) ColorModel ¶
ColorModel implements draw.Image
Click to show internal directories.
Click to hide internal directories.