Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 36 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
screenshot
Screenshot
==========

![](https://github.com/kbinani/screenshot/actions/workflows/build.yml/badge.svg)
Expand All @@ -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`
Expand Down Expand Up @@ -60,16 +60,44 @@ example
main.go
```

coordinate
List of Functions
=======
* windows.go ( Depends on https://github.com/lxn/win A Windows API wrapper)

```
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