- Added
CFUNCTIONS
- Added
CFUNCTIONS
- Added
CFUNCTIONS
- Added
MONITORNUMPROC
- Removed
MSS.monitorenumproc
. UseMONITORNUMPROC
instead.
- Added
lock
- Added
MSS._grab_impl()
(abstract method)- Added
MSS._monitors_impl()
(abstract method)MSS.grab()
is no more an abstract methodMSS.monitors
is no more an abstract property
- Renamed
MSS.grab()
toMSS._grab_impl()
- Renamed
MSS.monitors
toMSS._monitors_impl()
- Added
MSS.has_extension()
- Removed
MSS.display
- Renamed
MSS.grab()
toMSS._grab_impl()
- Renamed
MSS.monitors
toMSS._monitors_impl()
- Removed
MSS._lock
- Renamed
MSS.srcdc_dict
toMSS._srcdc_dict
- Renamed
MSS.grab()
toMSS._grab_impl()
- Renamed
MSS.monitors
toMSS._monitors_impl()
- Renamed back
MSSMixin
class toMSSBase
MSSBase
is now derived fromabc.ABCMeta
MSSBase.monitor
is now an abstract propertyMSSBase.grab()
is now an abstract method
- Replaced
MSS.srcdc
withMSS.srcdc_dict
- Added MSS.__slots__
- Added MSS.__slots__
- Deleted MSS.close()
- Deleted
LAST_ERROR
constant. UseERROR
namespace instead, specially theERROR.details
attribute.
- Added
Monitor
- Added
Monitors
- Added
Pixel
- Added
Pixels
- Added
Pos
- Added
Size
- Added ScreenShot.__slots__
- Removed
Pos
. Usemodels.Pos
instead. - Removed
Size
. Usemodels.Size
instead.
- Added MSS.__slots__
- Deleted MSS.close()
- Removed use of
MSS.xlib.XDefaultScreen()
- Renamed
MSSBase
class toMSSMixin
- Renamed
MSS.__del__()
method toMSS.close()
- Deleted
MSS.last_error
attribute. UseLAST_ERROR
constant instead. - Added
validate()
function - Added
MSS.get_error_details()
method
- Renamed
MSS.__exit__()
method toMSS.close()
- Added
details
attribute toScreenShotError
exception. Empty dict by default.
- Added
error_handler()
function
- Removed
MSS.scale_factor
property - Removed
MSS.scale()
method
- Added
MSSBase.compression_level
to control the PNG compression level
- Added
MSS.drawable
to speed-up grabbing.
- Added
Screenshot.bgra
to get BGRA bytes.
- Changed signature of
to_png(data, size, output=None)
toto_png(data, size, level=6, output=None)
.level
is the Zlib compression level.
- 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
- Added
CGPoint.__repr__()
- Added
CGRect.__repr__()
- Added
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__
]) - Added
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 set 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)