Skip to content

rostislaved/screenshot

 
 

Repository files navigation

Screenshot

Simple cross-platform pure Go screen shot library. (tested on linux&windows&osx)

Changes:

  • Changed: linux and freebsd source code is one file now
  • Changed: linux (and freebsd) code refactored
  • Changed: Connection to X in linux is separated from screenshoting (Now no memory leakage while screenshoting in a loop)

Basic Usage

Import the package

import (
    "github.com/rostislaved/screenshot"
)
func main() {

	screenshoter := screenshot.New()

	img, err := screenshot.CaptureScreen()
	if err != nil {
		log.Fatal(err)
	}
}

Dependencies

Examples

Look at examples/ folder.

About

Screenshoter for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%