scanimage

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Device

func Device() (string, error)

func NewScanJob

func NewScanJob(mode Mode, format Format, resolution int, thumbnail *thumbnail.Thumbnail) *scan

Types

type Format

type Format int
const (
	Tiff Format = iota
	Png
	Jpeg
	Pnm
)

func ToFormat

func ToFormat(format string) Format

func (Format) Extension

func (f Format) Extension() string

func (Format) String

func (f Format) String() string

type Mode

type Mode int
const (
	Lineart Mode = iota
	Gray
	Color
)

func ToMode

func ToMode(mode string) Mode

func (Mode) String

func (m Mode) String() string

Jump to

Keyboard shortcuts

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