Export snapshot question...

Paul Hibbert paul at livecode.org
Sat Nov 7 13:46:39 EST 2015

Yes this is the expected behaviour. Export snapshot from rect is not be able to take a snapshot of something "off-screen” because it’s not rendered by the display.

Export snapshot from rect uses the device's display output to render the image, but if you use Export snapshot of an object (stack, card, group etc.), then the LC engine renders the image, so you can take a snapshot of a stack that is off-screen this way. I hope that makes sense!


> On Nov 7, 2015, at 10:15 AM, Paul Dupuis <paul at researchware.com> wrote:
> I am using the "export snapshot from rect tRect to ... " for of the
> export snapshot command to export the interior of a stack window where
> and External has drawn in the window. tRect is set to the global
> (screen) coordinates of the interior area of the window based on its
> current position.
> This works fine. I get a resulting image that is exactly what I am
> seeing on screen.
> Now I have experimented with move the stack off-screen so that I can
> capture the image without the user seeing the window. I have discovered
> that if a portion of the window is visible, but say, extends off the
> bottom of the screen, and my coordinates in tRect encompass the area
> both on and off screen, the image is created just fine.
> However, if the whole window is off screen, for example by setting the
> topLeft of the window to -5000,-5000 or to 5000,5000, then the export
> snapshot command throw and execution error that there is nothing to
> snapshop.
> Has anyone else run into this issue with export snapshot using screen
> coordinates? Is there some reason why export snapshot should not be able
> to take a snapshop of something rendered "off-screen"? Is this a known
> export snapshop issue? I could not find an applicable bug entry for this
> behavior.
> I am using LC6.7.6 under Windows 8.1
> _______________________________________________
> 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