Exemple #1
0
// New constructor
func New() (ss *Screenshot, err error) {
	ss = &Screenshot{}
	ss.image, err = screenshot.Capture()
	return
}
Exemple #2
0
// Capture method
func Capture() (img image.Image, err error) {
	img, err = screenshot.Capture()
	return
}