- Added
compression_level=6
keyword argument toMSS.__init__()
- Added
display=None
keyword argument toMSS.__init__()
- Added
max_displays=32
keyword argument toMSS.__init__()
- Added
with_cursor=False
keyword argument toMSS.__init__()
- Added
MSS.with_cursor
attribute
- Added
MSS.close()
- Moved
MSS.__init__()
keyword arguments handling to the base class - Renamed
error_handler()
function to__error_handler()
- Renamed
_validate()
function to___validate()
- Renamed
MSS.has_extension()
method to_is_extension_enabled()
- Removed
ERROR
namespace - Removed
MSS.drawable
attribute - Removed
MSS.root
attribute - Removed
MSS.get_error_details()
method. UseScreenShotError.details
attribute instead.
- 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
attribute
- Added
MSS.drawable
attribute
- Added
Screenshot.bgra
attribute
- 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 toscreenshot.py
- Added
CGPoint.__repr__()
function - Added
CGRect.__repr__()
function - Added
CGSize.__repr__()
function - Removed
get_infinity()
function
- Added
MSS.scale()
method - Added
MSS.scale_factor
property
- 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)