Versions in this module Expand all Collapse all v0 v0.0.1 Feb 21, 2026 Changes in this version + var ErrUnsupported = errors.New("screenshot does not support your platform") + func Capture(x, y, width, height int) (*image.RGBA, error) — darwin/amd64, js/wasm, windows/amd64 + func Capture(x, y, width, height int) (img *image.RGBA, e error) — linux/amd64 + func CaptureDisplay(displayIndex int) (*image.RGBA, error) + func CaptureRect(rect image.Rectangle) (*image.RGBA, error) + func GetDisplayBounds(displayIndex int) (rect image.Rectangle) — linux/amd64 + func GetDisplayBounds(displayIndex int) image.Rectangle — darwin/amd64, js/wasm, windows/amd64 + func NumActiveDisplays() (num int) — linux/amd64 + func NumActiveDisplays() int — darwin/amd64, js/wasm, windows/amd64