snapshot and imageData...

Mark Schonewille m.schonewille at economy-x-talk.com
Wed May 31 12:22:31 EDT 2006


JB,

Your script works fine here. I don't know why it wouldn't work for  
you. Did you restart Revolution and try this script again in an  
otherwise empty stack? Maybe, you machine is too slow, you don't have  
enough memory available, or maybe you have an empty image on your  
card which you forgot about. Without more information, there is  
nothing I can do.

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Salery is the easiest way to get your own web store on-line: http:// 
www.salery.biz/salery.html



Op 31-mei-2006, om 16:48 heeft jbv het volgende geschreven:

>
>
> Mark,
>
> yes, you're right; but try this :
>
> on mouseUp
>     import snapshot from rect (the screenRect)
>     put length(the imagedata of img 1)
>
>     create img
>     set rect of img 2 to rect of img 1
>     set imageData of img 2 to imageData of img 1
> end mouseUp
>
> the 2nd image is just a black rect; although the imagedata
> contains more than 5 Mb of binary, it seems that they're
> all zeros...
>
> as for Rev doc, just have a look at what it says for imageData
> (bottom of the screen)...
>
> JB
>




More information about the use-livecode mailing list