dump newbie image questiosn

Jon jbondy at sover.net
Mon Jun 6 15:37:13 EDT 2005



J. Landman Gay wrote:

<snip>

> No, I wasn't joking. I'm not even sure I understand the problem 
> because I've never seen it. I always scale images by calculating the 
> desired dimensions and setting the image to that size. For example, if 
> I want an image to display at 1/3 its natural size, I do this:
>
> set the width of img 1 to round((the formattedwidth of img 1) * .3)
> set the height of img 1 to round((the formattedheight of img 1) * .3)
>

This is great if you know in advance that there is enough room to 
display the image in this way, at this particular scale.  What I wanted 
was something that automatically displayed the image at the largest 
resolution possible in "the available space".  That's where the 
confusion comes in: I need to store the "available space" somewhere in 
the Image object if I am to perform the computations properly.  Maybe it 
is just that simple, at least for me.

:)

Jon


More information about the use-livecode mailing list