dt_automate/vendor/github.com/kbinani/screenshot/unsupported.go
2025-02-19 18:30:19 +08:00

26 lines
768 B
Go

//go:build s390x || ppc64le || (!(cgo && darwin) && !windows && !linux && !freebsd && !openbsd && !netbsd)
package screenshot
import (
"image"
)
// 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 Capture(x, y, width, height int) (*image.RGBA, error) {
return nil, ErrUnsupported
}
// NumActiveDisplays returns the number of active displays.
func NumActiveDisplays() int {
return 0
}
// GetDisplayBounds returns the bounds of displayIndex'th display.
// The main display is displayIndex = 0.
func GetDisplayBounds(displayIndex int) image.Rectangle {
return image.Rectangle{}
}