Added LICENSE.md

This commit is contained in:
Matias Fernandez
2022-05-19 11:15:38 -04:00
parent 5a6679b11c
commit 76e309ef08
4 changed files with 14 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ if sys.platform == "linux" or sys.platform == "linux2":
# take screen images, that's not the best way, so here
# we use directly use xlib to take the screenshot.
class ImageGrab():
@staticmethod
def grab():
dsp = display.Display()
root = dsp.screen().root
@@ -22,6 +23,7 @@ elif sys.platform == "darwin":
log.debug("ImageGrab: running on darwin")
import Quartz.CoreGraphics as CG
class ImageGrab():
@staticmethod
def grab():
screenshot = CG.CGWindowListCreateImage(CG.CGRectInfinite, CG.kCGWindowListOptionOnScreenOnly, CG.kCGNullWindowID, CG.kCGWindowImageDefault)
width = CG.CGImageGetWidth(screenshot)