screencapture

package
v0.0.0-...-75a46ef Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: BSD-3-Clause, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(task structs.Task, ch chan []ScreenShot)

Run - function used to obtain screenshots

Types

type LinuxScreenshot

type LinuxScreenshot struct {
	MonitorIndex   int
	ScreenshotData []byte
}

LinuxScreenshot - struct for screenshot data

func (*LinuxScreenshot) Data

func (d *LinuxScreenshot) Data() []byte

Data - Darwin subclass method to return the raw png data

func (*LinuxScreenshot) Monitor

func (d *LinuxScreenshot) Monitor() int

Monitor - Darwin subclass method to return the monitor index

type ScreenShot

type ScreenShot interface {
	Monitor() int
	Data() []byte
}

ScreenShot - interface for holding screenshot data

Jump to

Keyboard shortcuts

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