Card SnapShot from Negative Rect?

Scott Rossi scott at tactilemedia.com
Mon Jun 6 16:52:33 EDT 2016


Thanks for the idea Bernd.  I'm trying to snapshot the card because I want
to capture multiple objects/groups that are present in a designated rect,
along with the card background pattern (where theRect includes negative
values).

export snapshot from rect theRect of this cd at size 120,120 to img "map"


I supposed I could ignore the card and temporarily group the controls to
be able to snapshot from a single object, but then I have to relayer
everything back to where it was originally.  This is not ideal, but
possible.

AFAIK, it's not possible to designate multiple objects for a snapshot, is
it?

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 6/6/16, 12:42 PM, "use-livecode on behalf of BNig"
<use-livecode-bounces at lists.runrev.com on behalf of
bernd.niggemann at uni-wh.de> wrote:

>Hi Scott,
>
>what happens if you reference the object directly:
>
>on mouseUp
>   export snapshot from field 1 of group 1 to tImg as png
>   set the text of image 1 to tImg
>   put the rect of field 1 of group 1
>end mouseUp
>
>or 
>
>on mouseUp
>   import snapshot from field 1 of group 1
>   put the rect of field 1 of group 1
>end mouseUp
>
>the rect of field 1 being 327,-125,577,-69
>
>both work for me in LC 7.1.4. Both retain transparency.
>
>Kind regards
>Bernd
>
>
>Scott Rossi wrote
>> Anyone know how to snapshot a rect location of a card that includes
>> negative values?
>> 
>> In LC 7.1.3, I have an object in a group that's scrolled out of view,
>> resulting in the object's rect having negative values.  I want to
>>snapshot
>> the object, but I'm unable to snapshot any part of the card outside the
>> card's rect (where the rect contains values less than zero).  I know
>>it's
>> possible to snapshot an offscreen stack, but can't seem to do this with
>>an
>> offscreen object on a card.
>> 
>> Any option for this besides locking the screen and moving the object to
>>a
>> visible location?
>> 
>> Thanks,
>> 
>> Scott Rossi
>
>
>
>
>
>--
>View this message in context:
>http://runtime-revolution.278305.n4.nabble.com/Card-SnapShot-from-Negative
>-Rect-tp4705458p4705459.html
>Sent from the Revolution - User mailing list archive at Nabble.com.
>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the Use-livecode mailing list