Can one manually resize an object proportionately?
Stgoldberg at aol.com
Stgoldberg at aol.com
Sun Apr 10 07:58:55 EDT 2005
Thanks, Malte for your suggestions. However, in this case what I am
suggesting is that rather than having to type in numbers to resize an object
proportionately, there needs to be some way to do this manually, such as holding down
the Shift key while doing the resizing (like in Photoshop), which I don't see
is a feature of Revolution. In that way, one can do the resizing on the fly,
eyeballing whether or not the object is the right size for the card, rather
than having to experiment with different numbers until the size seems right. So
if anyone has way of doing this, I'd certainly like to hear about it. Thanks.
Steve Goldberg
In a message dated 4/10/05 12:23:47 AM,
use-revolution-request at lists.runrev.com writes:
> From: Malte Brill <revolution at derbrill.de>
> Subject: Re: # Can one manually resize an object proportionately?
> To: use-revolution at lists.runrev.com
> Message-ID: <EACC1972-A92A-11D9-BF35-0030659A795C at derbrill.de>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> Hi Steve,
>
> >Although one can go into the Revolution property inspector and do some
> >calculation to resize an object proportionately, e.g. to say 1/3 the
> size, when
> >trying to do this manually I do not see a way to control the resizing
> >proportionately.
>
> You can easiely write a function to do it and do your resizing with the
> messageBox.
>
> If you like to take a look at libRMC (a small Multimedia Library I
> wrote) you can save a bit of work. :-)
>
> You will need to put the stack in the messagepath (start using stack
> "libRMC")
>
> If you want to find out what other features it offers type
>
> libRMCInfo
>
> into the messagebox.
>
> From the docs:
>
> aspectScale left,top,right,bottom[,setLockLoc]
>
> set the aspectScale of img "myImage" to 100,100,400,400,true
> set the aspectScale of fld "myField" to the rect of grc "myGraphic"
>
> setting the aspectScale of a control scales it in the correct
> width-to-height ratio to the biggest dimensions possible to fit in the
> specified rectangle. you can specify if the lockLoc of the control
> should be set to avoid unwanted resizing when closing/reopening cards.
>
>
> You find the library here:
>
> http://www.derbrill.de/librmc/libRMC.rev.zip
>
> The docs:
>
> http://www.derbrill.de/librmc/docs.pdf
>
> Cheers,
>
>
More information about the use-livecode
mailing list