Page 1 of 1

Export snapshoot

Posted: Mon May 25, 2015 7:00 pm
by JosepM
Hi,

I have a image of 600x1400 inside a group of 600x600 and I need export the whole 600x1400 as jpg with some images and texts that I put over the original image. I don't used export snapshoot but I see the only export the visible rect.

Any way about how export the whole size? or workaround?

Salut,
Josep M

Re: Export snapshoot

Posted: Mon May 25, 2015 9:23 pm
by Klaus
Hi Josep,

not sure if this directly possible, but this is a nice workaround:

Code: Select all

on mouseUp
   lock screen

   ## Save current (visible) rect
   put the rect of grp 1 into tRect

   ## Resize to FULL size
   set the rect of grp 1 to the formattedrect of grp 1

   ## Take snapshot, I only imported it here
   import snapshot from rect (the rect of grp 1) of grp 1
   ## ...) of grp 1 will prevent to also "snapshot" objects that are not part of the group
   ## but are in layers on top that group! May not apply to your example, but what the egg ;-)

   ## Resize back
   set the rect of grp 1 to tRect

  ## Noone will tell the difference :-)
   unlock screen
end mouseUp
Best

Klaus

Re: Export snapshoot

Posted: Mon May 25, 2015 10:41 pm
by JosepM
Hi Klaus,

Works perfectly! :) Thanks!
The master groups that are cloned are on back so all the cloned object are inside the image group.

Just only a 2 pixels black border around the whole image that I don't know why appear.
To increase the quality of the exported snapshoot?

Salut,
Josep M

Re: Export snapshoot

Posted: Mon May 25, 2015 11:06 pm
by JosepM
Hi Klaus,

I found that if I assign manually the rect of the group I can adjust it and avoid the black border... :)

Re: Export snapshoot

Posted: Tue May 26, 2015 11:53 am
by Klaus
Okie Dokie! :D

Re: Export snapshoot

Posted: Tue May 26, 2015 6:17 pm
by JosepM
Hi,

About the JPG quality? any way of change it?

Salut,
Josep M

Re: Export snapshoot

Posted: Tue May 26, 2015 6:25 pm
by Klaus
Hi Josep,

you can actually set "the jpegquality" (to 1 - 100) in Livecode. :D
Or better export directly to PNG!


Best

Klaus

Re: Export snapshoot

Posted: Tue May 26, 2015 7:11 pm
by JosepM
Hi Klaus,

But I read that the jpegquality is on for export not for snapshoots,... :|
I will try the PNG... :D

Thanks Klaus,
Josep M

Re: Export snapshoot

Posted: Tue May 26, 2015 8:08 pm
by Klaus
When you "export snapshot..." you can define the format by adding "... as JPEG" or "... as PNG".
When using JPEG the before set jpegqualtity will be used.

Re: Export snapshoot

Posted: Tue May 26, 2015 8:19 pm
by JosepM
Thanks! :)