imaging

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VirtualTimeBudget = 5000 // in ms

)

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageConfig

type ImageConfig struct {
	Width        int    `yaml:"width"`
	Height       int    `yaml:"height"`
	ChromeBinary string `yaml:"chrome_binary"`
	ScrapeURL    string `yaml:"scrape_url"`
	WorkingDir   string `yaml:"working_dir"`
	Dithering    bool   `yaml:"dithering"`
}

type ImageProcessor

type ImageProcessor struct {
	// contains filtered or unexported fields
}

func New

func New(config *ImageConfig) (*ImageProcessor, error)

func (*ImageProcessor) Close added in v0.1.2

func (i *ImageProcessor) Close() error

func (*ImageProcessor) GetImageAsBinary

func (i *ImageProcessor) GetImageAsBinary() []byte

GetImageAsBinary returns a one-dimensional byte array for all the pixels in the current image. Each bit represents one pixel.

func (*ImageProcessor) Update

func (i *ImageProcessor) Update()

Jump to

Keyboard shortcuts

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