Scott,
The important thing to recognize is that if you specify the rect in the 
snapshot command, you are essentially getting the data from the screenshot, but 
if you take a snapshot from a group, you get the data before it goes to the 
screen, where it exists in memory. 

I had a situation where a user was getting an extremely pixelated image from a 
screen snapshot. Putting the desired region on a group and using the syntax 
BNig suggests eliminates the possibility of this happening.

Best,
Bill

William Prothero
http://es.earthednet.org

> On Jun 6, 2016, at 12:42 PM, BNig <[email protected]> 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
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to