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