Seems too obvious to mention, but:<br><br>
src_image2 = src_image.resize( (20,20) )<br><br><br><br><br><div class="gmail_quote">On Fri, Nov 21, 2008 at 12:22 PM, Christopher Brooks <span dir="ltr"><<a href="mailto:cab938@mail.usask.ca">cab938@mail.usask.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I want to resize an image using something like:<br>
<br>
src_image.resize( (20,20) )<br>
<br>
This doesn't work, since resize() returns the new image. So something like:<br>
<br>
src_image = src_image.resize( (20,20) )<br>
<br>
works instead. Problem is that I have other references to the image that<br>
src_image is pointing to, and I want them to be updated as well. I thought<br>
maybe there would be a load() that takes an Image as a parameter and thus<br>
changes the underlying object but not the reference, but this doesn't seem<br>
to be the case.<br>
<br>
Any thoughts on part of the library I'm missing?<br>
<br>
Chris<br>
<br>
--<br>
Christopher Brooks, MSc.<br>
Web: <a href="http://www.cs.usask.ca/%7Ecab938" target="_blank">http://www.cs.usask.ca/~cab938</a><br>
Mail: Advanced Research in Intelligent Educational Systems Laboratory<br>
Department of Computer Science<br>
University of Saskatchewan<br>
176 Thorvaldson Building<br>
110 Science Place<br>
Saskatoon, SK<br>
S7N 5C9<br>
<br>
<br>
<br>
_______________________________________________<br>
Image-SIG maillist - <a href="mailto:Image-SIG@python.org">Image-SIG@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/image-sig" target="_blank">http://mail.python.org/mailman/listinfo/image-sig</a><br>
</blockquote></div><br>