raster

package
v0.0.0-...-c246800 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL