Skip to content

Commit

Permalink
Fix for #135
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchassassin committed Nov 13, 2018
1 parent 278d3a8 commit 4b79ff7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lackey/RegionMatching.py
Original file line number Diff line number Diff line change
Expand Up @@ -2100,7 +2100,9 @@ def capture(self, *args): #x=None, y=None, w=None, h=None):
# Capture region defined by provided x,y,w,h
region = Region(*args)
self.lastScreenImage = region.getBitmap()
return self.lastScreenImage
png = tempfile.NamedTemporaryFile(mode="wb", suffix=".png", delete=False)
Image.fromarray(self.lastScreenImage).save(png.name)
return png.name
captureForHighlight = capture
def selectRegion(self, text=""):
""" Not yet implemented """
Expand Down

0 comments on commit 4b79ff7

Please sign in to comment.