wx.lib.agw.scrolledthumbnail.PILImageHandler¶
This image handler loads and manipulates the thumbnails with the help of PIL (the Python Imaging Library).
Class Hierarchy¶
Methods Summary¶
Default class constructor. |
|
Adjust overall image brightness to highlight. |
|
Load the file. |
|
Rotate image by angle degrees. |
Class API¶
- class PILImageHandler(object)¶
This image handler loads and manipulates the thumbnails with the help of PIL (the Python Imaging Library).
Methods¶
- __init__(self)¶
Default class constructor.
Note
If PIL is not installed, this will raise an exception. PIL can be downloaded from http://www.pythonware.com/products/pil/ .
- HighlightImage(self, img, factor)¶
Adjust overall image brightness to highlight.
- Parameters:
img – an instance of
wx.Image
;factor – unused in
PILImageHandler
.
- Load(self, filename)¶
Load the file.
- Parameters:
filename – a file containing an image;
- Rotate(self, img, angle)¶
Rotate image by angle degrees.
- Parameters:
img – an instance of :class:wx.Image;
angle – angle in degrees
- Returns:
rotated image