Skip to content
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