From fbc6dca8d1853d5a4503000fd3aa42688ec4f410 Mon Sep 17 00:00:00 2001 From: Chuck <32836622+chuckn408@users.noreply.github.com> Date: Mon, 6 Jan 2025 13:10:14 -0800 Subject: [PATCH 1/2] Update README.md --- README.md | 44 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4090c2f..ba7a427 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -screenshot +Screenshot ========== ![](https://github.com/kbinani/screenshot/actions/workflows/build.yml/badge.svg) @@ -11,7 +11,7 @@ screenshot * Supported GOOS: windows, darwin, linux, freebsd, openbsd, and netbsd. * `cgo` free except for GOOS=darwin. -example +Example ======= * sample program `main.go` @@ -60,16 +60,44 @@ example main.go ``` -coordinate +List of Functions +======= +* windows.go + +``` +NumActiveDisplays() + +GetDisplayBounds() + +getDesktopWindow() + +enumDisplayMonitors() + +countupMonitorCallback() + +getMonitorBoundsCallback() + +getMonitorRealSize() +``` + +* screenshot.go + +``` +CaptureDisplay() + +CaptureRect() + +createImage() +``` + +Coordinate System ================= -Y-axis is downward direction in this library. The origin of coordinate is upper-left corner of main display. This means coordinate system is similar to Windows OS +The coordinate system is similar to Windows OS in that the he origin of Y-axis coordinate is upper-left corner of main display, in a downward direction. -license +License ======= - MIT Licence -author +Author ====== - kbinani From 8a83d0a17c506a6b8d593a6e041e13fcb2979243 Mon Sep 17 00:00:00 2001 From: Chuck <32836622+chuckn408@users.noreply.github.com> Date: Mon, 6 Jan 2025 13:34:06 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ba7a427..4831bcf 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Example List of Functions ======= -* windows.go +* windows.go ( Depends on https://github.com/lxn/win A Windows API wrapper) ``` NumActiveDisplays()