diff pyntnclick/resources.py @ 593:1eb1537173ef pyntnclick

Add some image transforms.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 11 Feb 2012 17:41:35 +0200
parents 4117d7b201a4
children 38f75cef86d0
line wrap: on
line diff
--- a/pyntnclick/resources.py	Sat Feb 11 17:38:57 2012 +0200
+++ b/pyntnclick/resources.py	Sat Feb 11 17:41:35 2012 +0200
@@ -66,8 +66,7 @@
         image name out of several fragments.
 
         The `transforms` param may contain transforms, which modify an image
-        in-place to apply various effects. TODO: Implement transforms
-        somewhere, so this becomes useful.
+        in-place to apply various effects.
 
         The `basedir` param defaults to 'images', but may be overriden to load
         images from other places. ('icons', for example.)
@@ -90,7 +89,7 @@
             self._image_cache[image_path] = image
         image = self._image_cache[image_path]
 
-        # Apply any mutators we're given.
+        # Apply any transforms we're given.
         for transform in transforms:
             image = transform(image)
         self._transformed_image_cache[key] = image