Simple cross-platform pure Go screen shot library. (tested on linux&windows&osx)
go get github.com/vova616/screenshotImport the package
import (
"github.com/vova616/screenshot"
)func main() {
img, err := screenshot.CaptureScreen()
myImg := image.Image(img)
}- Windows - None
- Linux/FreeBSD - https://github.com/BurntSushi/xgb
- OSX - cgo (CoreGraphics,CoreFoundation, that should not be a problem)
Look at example/ folder.