nix_dbus_unavailable.go
raw| 1 | //go:build freebsd |
| 2 | |
| 3 | package screenshot |
| 4 | |
| 5 | import ( |
| 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. |
| 12 | func Capture(x, y, width, height int) (img *image.RGBA, e error) { |
| 13 | return captureXinerama(x, y, width, height) |
| 14 | } |