go-tg-screenshot-bot
25 строк · 768.0 Байт
1//go:build s390x || ppc64le || (!(cgo && darwin) && !windows && !linux && !freebsd && !openbsd && !netbsd)
2
3package screenshot
4
5import (
6"image"
7)
8
9// Capture returns screen capture of specified desktop region.
10// x and y represent distance from the upper-left corner of primary display.
11// Y-axis is downward direction. This means coordinates system is similar to Windows OS.
12func Capture(x, y, width, height int) (*image.RGBA, error) {
13return nil, ErrUnsupported
14}
15
16// NumActiveDisplays returns the number of active displays.
17func NumActiveDisplays() int {
18return 0
19}
20
21// GetDisplayBounds returns the bounds of displayIndex'th display.
22// The main display is displayIndex = 0.
23func GetDisplayBounds(displayIndex int) image.Rectangle {
24return image.Rectangle{}
25}
26