Documentation ¶
Index ¶
- func Capture(x, y, width, height int) (*image.RGBA, error)
- func CaptureDisplay(displayIndex int) (*image.RGBA, error)
- func CaptureDisplayX2(displayIndex int) (*image.RGBA, error)
- func CaptureRect(rect image.Rectangle) (*image.RGBA, error)
- func CaptureRectX2(rect image.Rectangle) (*image.RGBA, error)
- func GetDisplayBounds(displayIndex int) image.Rectangle
- func NumActiveDisplays() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Capture ¶
Capture returns screen capture of specified desktop region. x and y represent distance from the upper-left corner of main display. Y-axis is downward direction. This means coordinates system is similar to Windows OS.
func CaptureDisplay ¶
CaptureDisplay captures whole region of displayIndex'th display.
func CaptureDisplayX2 ¶ added in v1.0.12
CaptureDisplay captures whole region of displayIndex'th display.
func CaptureRect ¶
CaptureRect captures specified region of desktop.
func CaptureRectX2 ¶ added in v1.0.12
CaptureRect captures specified region of desktop.
func GetDisplayBounds ¶
GetDisplayBounds returns the bounds of displayIndex'th display. The main display is displayIndex = 0.
func NumActiveDisplays ¶
func NumActiveDisplays() int
NumActiveDisplays returns the number of active displays.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.