Documentation ¶ Index ¶ type Converter func (c *Converter) Print(img image.Image, target Target) func (c *Converter) ToRaster(img image.Image) (data []byte, imageWidth, bytesWidth int) type Target Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Converter ¶ type Converter struct { // The maximum line width of the printer, in dots MaxWidth int // The threashold between white and black dots Threshold float64 } func (*Converter) Print ¶ func (c *Converter) Print(img image.Image, target Target) func (*Converter) ToRaster ¶ func (c *Converter) ToRaster(img image.Image) (data []byte, imageWidth, bytesWidth int) type Target ¶ type Target interface { Raster(width, height, bytesWidth int, rasterData []byte) } Source Files ¶ View all Source files raster.go Click to show internal directories. Click to hide internal directories.