capture

package
v0.0.0-...-26578f1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package capture provides services for content capture.

Examples include screenshots, video and audio capture

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Screen

type Screen struct {
}

Screen controls capturing screenshots

func NewScreen

func NewScreen() *Screen

NewScreen creates a new instance of screen capturing

func (*Screen) CaptureBounds

func (screen *Screen) CaptureBounds(displayID int,
	bounds image.Rectangle) (image.Image, error)

CaptureBounds captures the given rectange and returns the image

func (*Screen) CaptureFullscreen

func (screen *Screen) CaptureFullscreen(displayID int) (image.Image, error)

CaptureFullscreen captures the entire screen and returns the image

Jump to

Keyboard shortcuts

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