- Added
MSSBase.compression_levelto control the PNG compression level
- 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 setted 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)