-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Improve many docstrings and include examples
- Move image loading functions from __init__.py to image.py - Remove custom caching code, which was implemented based on an incorrect assumption (that Imlib2 does not cache decoded image data). - Expose Imlib2 cache size management via get/set_cache_size - Add __all__ for image.py and font.py to keep imlib2 namespace clean - Deprecate open_svg() and open_svg_from_memory() and make open() and open_from_memory() work with any file type. - Convert Imlib2 error codes back into proper IOError exceptions with errno - Functions that do in-place changes now return self, to allow for chaining e.g. img.draw_rectangle().crop().thumbnail().save() - Change interpretation of negative values for position and size: now are relative to the far edge of the image. For size, a value of '0' is the far edge of the image (and -1 would be one pixel before it). This is technically an incompatible API change but hopefully shouldn't affect anyone. git-svn-id: svn://svn.freevo.org/kaa/trunk/imlib2@4381 a8f5125c-1e01-0410-8897-facf34644b8e
- Loading branch information
1 parent
6d82d42
commit e61fb08
Showing
3 changed files
with
447 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.