SnapShots
Posted: Mon May 20, 2013 2:42 pm
Hi,
I've given this more than a couple of hours and have failed to find an answer
I'm trying to create a simple colouring app for my kids - well that's my excuse to play with some ideas I have for LC
So;
-1- I use 'Answer file...' to select a suitable black and white line drawing (gotten of the web or scanned in myself)
-2- I put the image into an Image control held within a group (of just itself) - this means my original image will not be shrunk to the device screen size but, rather, can be scrolled around using the group's sliders... simple but sweet !
-3- I have a script that catches the mouse down event and draws a graphic ('line' type) in a user-selected colour and width...
All cool so far...
I then try to take a 'snapshot' of my image to save the part that's been coloured in/visible... BUT
the snapshot doesn't take into account my colouring-ins (graphics). There's just gotta be a way of doing this but... I'm stumped...
I'll keep trying but rather than continuing to bash my poor old sore head agains a LiveCode wall, I thought I'd post the question here.
I'm currently playing with including the mouse scribbles/paints/graphics in a group and take a snapshot of the group but... much head scratching... seem unable to achieve this.
On a separate but associated note (I'm loathe to ask two Qs in one post but...) how would I copy the image data from an image on one card to an image on another card ? In my case I load the image on one page (and am able to rotate it and size it there) then want to display the modified (rotated/resized) 'base' image on the colouring-in card... but am struggling badly with that too. The group (containing the image control) on the colouring-in card does resize itself to match the setup card's group/image size but displays no image... I <i> could </i> just do the image setup on the colouring-in page but figure my kids need a simple interface etc and not the additional clutter of the required controls (similarly, I <i> could </i> just hide the controls after I've set up the image for them but... there MUST be a proper way to do this... (tried, 'copy image... to...', tried 'set the source...', tried 'put the imagedata of... into...' none seem to display my image but the last one (put the imagedata...) does resize my colouring-in group to suit the setup image - just doesn't display the darn thing !!!!
Any and all pointers would be appreciated...
Thanks a mil.
Regards.
I've given this more than a couple of hours and have failed to find an answer

I'm trying to create a simple colouring app for my kids - well that's my excuse to play with some ideas I have for LC

So;
-1- I use 'Answer file...' to select a suitable black and white line drawing (gotten of the web or scanned in myself)
-2- I put the image into an Image control held within a group (of just itself) - this means my original image will not be shrunk to the device screen size but, rather, can be scrolled around using the group's sliders... simple but sweet !
-3- I have a script that catches the mouse down event and draws a graphic ('line' type) in a user-selected colour and width...
All cool so far...
I then try to take a 'snapshot' of my image to save the part that's been coloured in/visible... BUT
the snapshot doesn't take into account my colouring-ins (graphics). There's just gotta be a way of doing this but... I'm stumped...
I'll keep trying but rather than continuing to bash my poor old sore head agains a LiveCode wall, I thought I'd post the question here.
I'm currently playing with including the mouse scribbles/paints/graphics in a group and take a snapshot of the group but... much head scratching... seem unable to achieve this.
On a separate but associated note (I'm loathe to ask two Qs in one post but...) how would I copy the image data from an image on one card to an image on another card ? In my case I load the image on one page (and am able to rotate it and size it there) then want to display the modified (rotated/resized) 'base' image on the colouring-in card... but am struggling badly with that too. The group (containing the image control) on the colouring-in card does resize itself to match the setup card's group/image size but displays no image... I <i> could </i> just do the image setup on the colouring-in page but figure my kids need a simple interface etc and not the additional clutter of the required controls (similarly, I <i> could </i> just hide the controls after I've set up the image for them but... there MUST be a proper way to do this... (tried, 'copy image... to...', tried 'set the source...', tried 'put the imagedata of... into...' none seem to display my image but the last one (put the imagedata...) does resize my colouring-in group to suit the setup image - just doesn't display the darn thing !!!!
Any and all pointers would be appreciated...
Thanks a mil.
Regards.