- Added MSS.__slots__
- Added MSS.__slots__
- Deleted MSS.close()
- Deleted
LAST_ERRORconstant. UseERRORnamespace instead, specially theERROR.detailsattribute.
- Added
Monitor - Added
Monitors - Added
Pixel - Added
Pixels - Added
Pos - Added
Size
- Added ScreenShot.__slots__
- Removed
Pos. Usemodels.Posinstead. - Removed
Size. Usemodels.Sizeinstead.
- Added MSS.__slots__
- Deleted MSS.close()
- Removed use of
MSS.xlib.XDefaultScreen()
- Renamed
MSSBaseclass toMSSMixin
- Renamed
MSS.__del__()method toMSS.close() - Deleted
MSS.last_errorattribute. UseLAST_ERRORconstant instead. - Added
validate()function - Added
MSS.get_error_details()method
- Renamed
MSS.__exit__()method toMSS.close()
- Added
detailsattribute toScreenShotErrorexception. Empty dict by default.
- Added
error_handler()function
- Removed
MSS.scale_factorproperty - Removed
MSS.scale()method
- Added
MSSBase.compression_levelto control the PNG compression level
- Added
MSS.drawableto speed-up grabbing.
- Added
Screenshot.bgrato get BGRA bytes.
- Changed signature of
to_png(data, size, output=None)toto_png(data, size, level=6, output=None).levelis the Zlib compression level.
- Changed signature of
to_png(data, size, output)toto_png(data, size, output=None). IfoutputisNone, the raw PNG bytes will be returned.
- Added
argsargument tomain()
- Moved
ScreenShotclass to screenshot.py
- Added
CGPoint.__repr__() - Added
CGRect.__repr__() - Added
CGSize.__repr__() - Removed
get_infinity()function
- Added
scale()method toMSSclass - Added
scale_factorproperty toMSSclass
- Added the
ScreenShotclass 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_pixelstograb. It now returns aScreenShotobject. - Moved
to_pngmethod totools.py. It is now a simple function. - Removed
enum_display_monitors()method. Usemonitorsproperty instead. - Removed
monitorsattribute. Usemonitorsproperty instead. - Removed
widthattribute. UseScreenShot.size[0]attribute orScreenShot.widthproperty instead. - Removed
heightattribute. UseScreenShot.size[1]attribute orScreenShot.heightproperty instead. - Removed
image. Use theScreenShot.rawattribute orScreenShot.rgbproperty instead. - Removed
bgra_to_rgb()method. UseScreenShot.rgbproperty instead.
- Removed
_crop_width()method. Screen shots are now using the width set by the OS (rounded to 16).
- Renamed
ScreenshotErrorclass toScreenShotError
- Changed signature of
to_png(data, monitor, output)toto_png(data, size, output)wheresizeis atuple(width, height)