Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActiveDisplays ¶
ActiveDisplays returns the count of current active displays enabled on the device.
This function returns an error if any error occurs when retriving the display count.
TODO(dij): Currently works only on Windows devices.
func Capture ¶
Capture attempts to take a PNG-encoded screenshot of all the active displays on the device into the supplied io.Writer.
This function will return an error getting the screen color info fails or encoding the image fails.
This function calculates the dimensions of all the active displays together and calls 'CaptureRange' underneath.
TODO(dij): Currently works only on Windows devices.
func CaptureRange ¶
CaptureRange attempts to take a PNG-encoded screenshot of the current deminsions specified into the supplied io.Writer.
This function will return an error getting the screen color info fails or encoding the image fails.
TODO(dij): Currently works only on Windows devices.
func DisplayBounds ¶
DisplayBounds returns the bounds of the supplied display index.
This function will return the bounds of the first monitor if the index is out of bounds of the current display count.
TODO(dij): Currently works only on Windows devices.
Types ¶
This section is empty.