On Fri, 9 Mar 2001, NickB wrote:

> How do I put an Image onto a canvas with its natural size?
> 
> The  operation      ......add('image', image=XXX,
>             x=XX,
>             y=XX,
>             width=XX,
>             height=XX)
> 
> - takes explicit location and size information.
> 
> So how do I pass the information so the image appears it's natural size?
> 
> The operation wants the info since it complains if it is left out, so it
> is not default behaviour?

You can get the image's width/height with image.rgb_width or
image.rgb_height.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/



_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to