Documentation
¶
Overview ¶
Package screenshot captures screenshot image as image.RGBA. Mac, Windows, Linux, FreeBSD, OpenBSD and NetBSD are supported.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrUnsupported = errors.New("screenshot does not support your platform")
ErrUnsupported is returned when the platform or architecture used to compile the program does not support screenshot, e.g. if you're compiling without CGO on Darwin
Functions ¶
func Capture ¶
Capture returns screen capture of specified desktop region. x and y represent distance from the upper-left corner of primary display. Y-axis is downward direction. This means coordinates system is similar to Windows OS.
func CaptureDisplay ¶
CaptureDisplay captures whole region of displayIndex'th display, starts at 0 for primary display.
func CaptureRect ¶
CaptureRect captures specified region of desktop.
func GetDisplayBounds ¶
GetDisplayBounds returns the bounds of displayIndex'th display. The main display is displayIndex = 0.
func NumActiveDisplays ¶
func NumActiveDisplays() (num int)
NumActiveDisplays returns the number of active displays.
Types ¶
This section is empty.