Import from rect

Thomas McGrath III mcgrath3 at mac.com
Fri Jan 16 16:14:47 EST 2009


Jac,

I just don't see the difference...

import snapshot from rect (the rect of img "TEST2") of card "Test" of  
stack "Tester" -- = LOCAL coordinates

and

import snapshot from rect (the rect of img "TEST2" of card "Gradient  
Lab" of stack "LRSGradientText") -- = GLOBAL coordinates

or is it:

the rect someRect of card  = local
and rect someRect  = global

someRect is the same in both cases -- RIGHT

and in the first case start at the topleft of the card even though the  
someRect is the same numbers

but the second case says start from the topleft of the screen even  
though the someRect is the same numbers

IS THIS RIGHT.....

Thanks


Tom McGrath III
Lazy River Software
3mcgrath at comcast.net

iTunes Library Suite - libITS
Information and download can be found on this page:
http://www.lazyriversoftware.com/RevOne.html


On Jan 16, 2009, at 1:14 PM, J. Landman Gay wrote:

> Thomas McGrath III wrote:
>
>> I have the following line of code in a stack which works great but  
>> seems to me to be wrong:
>> import snapshot from rect (the rect of img "TEST2") of card "Test"  
>> of stack "Tester" -- Works as expected
>> So if I fix it to what I think it should be it doesn't work but  
>> snapshots from the actual stack or card but not the rect of the  
>> image:
>> import snapshot from rect (the rect of img "TEST2" of card  
>> "Gradient Lab" of stack "LRSGradientText") -- Does not work as  
>> expected
>
> The second example translates to: import snapshot from rect someRect
>
> This will be in global coordinates.
>
> The first example translates to: import snapshot from rect someRect  
> of objectReference
>
> This will be in local coordinates. The parentheses are the problem.
>
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the Use-livecode mailing list