Exporting images larger than the stack.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Exporting images larger than the stack.

Post by magice » Sun Feb 03, 2013 5:17 am

I have been working on a tile based graphics editing program. The way it saves an image is to export a snapshot from the "work area" stack. This is fine for graphics screen sized or smaller. I would like to work with larger images and use the scroll bars. is there a way to export an image that is larger that the screen?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Exporting images larger than the stack.

Post by Klaus » Sun Feb 03, 2013 7:47 pm

Ho Magice,

if you did not resize the image or whatever (so it is not compeleteyl visible on the screen) then using he syntax:
...
## Maybe resize to original first, then take snapshot and resize back again to "screensize" if neccessary
export snapshot from rect (the rect of img "too large for screen") of img "too large for screen" to ....
...
should work.

## Same applies to GROUPS!
### export snapshot from rect (the rect of grp "the BIG ONE") of grp "the BIG ONE" to...


Best Klaus

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: Exporting images larger than the stack.

Post by magice » Tue Feb 05, 2013 7:06 am

Thank you Klaus. Once again you suggested the perfect solution. Grouping my images and exporting from the group is what I needed.

Post Reply