- Changed signature of
to_png(data, size, output)
toto_png(data, size, output=None)
. Ifoutput
isNone
, the raw PNG bytes will be returned.
- Added
args
argument tomain()
- Moved
ScreenShot
class to screenshot.py
- Add
CGPoint.__repr__()
- Add
CGRect.__repr__()
- Add
CGSize.__repr__()
- Removed
get_infinity()
function
- Added
scale()
method toMSS
class - Added
scale_factor
property toMSS
class
- Added the
ScreenShot
class containing data for a given screen shot (support the Numpy array interface [ScreenShot.__array_interface__
]) - Add
shot()
method toMSSBase
. It takes the same arguments as thesave()
method. - Renamed
get_pixels
tograb
. It now returns aScreenShot
object. - Moved
to_png
method totools.py
. It is now a simple function. - Removed
enum_display_monitors()
method. Usemonitors
property instead. - Removed
monitors
attribute. Usemonitors
property instead. - Removed
width
attribute. UseScreenShot.size[0]
attribute orScreenShot.width
property instead. - Removed
height
attribute. UseScreenShot.size[1]
attribute orScreenShot.height
property instead. - Removed
image
. Use theScreenShot.raw
attribute orScreenShot.rgb
property instead. - Removed
bgra_to_rgb()
method. UseScreenShot.rgb
property instead.
- Removed
_crop_width()
method. Screen shots are now using the width setted by the OS (rounded to 16).
- Renamed
ScreenshotError
class toScreenShotError
- Changed signature of
to_png(data, monitor, output)
toto_png(data, size, output)
wheresize
is atuple(width, height)