snapshot and imageData...
jbv
jbv.silences at club-internet.fr
Sun Jun 4 06:07:44 EDT 2006
Chipp,
Thanks for the tip.
For those interested, I've found a (slightly) different
but (slightly) faster way to do this :
on mouseUp
put the screenrect into tRect
export snapshot from rect tRect to var as JPEG
create img
put var into img 1
end mouseUp
the difference is probably because only 1 image
object is created...
JB
> jbv,
>
> I tried this and it works just fine:
>
> on mouseUp
> put the screenRect into tRect
> import snapshot from rect tRect
> create img
> put img 1 into img 2
> end mouseUp
>
> The trick is to create the var tRect first before using the import
> snapshot command.
>
> best,
> Chipp
> _______________________________________________
More information about the use-livecode
mailing list