snapshot and imageData...

jbv jbv.silences at club-internet.fr
Wed May 31 10:13:36 EDT 2006



Mark,

yes, it works fine for me too, but as I said before, the imageData
of the imported image seems to blank...
and as the Rev doc says, the image content and the imageData prop.
are in different forms... so it seems that the image content displays,
but the imageData isn't created...

Am I wrong ?

JB

> The following scripts work fine in Rev 2.7.1.
>
> on mouseUp
>    import snapshot from rect (the screenRect)
> end mouseUp
>
> on mouseUp
>    export snapshot from rect "100,100,200,200" to myVar as PNG
>    set the rect of img 1 to "110,110,210,210"
>    put myVar into img 1
> end mouseUp
>
> 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 15:07 heeft jbv het volgende geschreven:
>
> > Hi list,
> >
> > when using
> >     import snapshot from rect (the screenrect)
> >
> > as well as
> >     export snapshot from rect (the screenrect) to myVar as JPEG
> >     put var into img 1
> >
> > it seems that the imageData of the image object is blank...
> > I tried with Rev 2,5 and MC 2.4.1
> >
> > Am I missing something, or is there a way to create the actual
> > imageData for further image processing ?
> > I haven't found anything useful in the archives...
> >
> > Thanks,
> > JB
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

--



_________________________
Faith is a central nervous system disease, like Alzheimer or multiple sclerosis.





More information about the use-livecode mailing list