Something that would be simple would be a wrapper class containing an image as an attribute. You could reference the wrapper instead of the image itself, which would solve your problem. I think you could write a wrapper in 20-30 lines of code, and probably have a very small performance hit if any.
On Fri, Nov 21, 2008 at 12:22 PM, Christopher Brooks <[EMAIL PROTECTED]> wrote: > I want to resize an image using something like: > > src_image.resize( (20,20) ) > > This doesn't work, since resize() returns the new image. So something like: > > src_image = src_image.resize( (20,20) ) > > works instead. Problem is that I have other references to the image that > src_image is pointing to, and I want them to be updated as well. I thought > maybe there would be a load() that takes an Image as a parameter and thus > changes the underlying object but not the reference, but this doesn't seem > to be the case. > > Any thoughts on part of the library I'm missing? > > Chris > > -- > Christopher Brooks, MSc. > Web: http://www.cs.usask.ca/~cab938 > Mail: Advanced Research in Intelligent Educational Systems Laboratory > Department of Computer Science > University of Saskatchewan > 176 Thorvaldson Building > 110 Science Place > Saskatoon, SK > S7N 5C9 > > > > _______________________________________________ > Image-SIG maillist - Image-SIG@python.org > http://mail.python.org/mailman/listinfo/image-sig > _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig