id tid to myFile
put imageData of img id tid into pimage
-- many lines for imagedata analysis
crop image id tid to rect trect
I get this error :
crop: object is not an image
That is a slightly misleading error...
'crop' does not operate on images which are referenced - i.e. use a
On 2024-07-23 14:23, jbv via use-livecode wrote:
Hi list,
I have the following script :
create image
put number of imgs into ni
put id of img ni into tid
set filename of img id tid to myFile
put imageData of img id tid into pimage
-- many lines for imagedata analysis
crop image id tid to
Please check mu second post on the same topic.
For the first one, I pressed "send" by mistake before
finishing to write it.
Thanks.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage y
Peter is correct in that you could:
"put the imageData of last image into wherever”
as opposed to finding the number of that image directly and using that info to
do stuff.
Be aware that the “last” keyword, though invaluable, is not stable when
referring to groups.
Craig
> On Jul 23, 2024, a
You use the “last” keyword, ie the highest numbered one:
the last image
Peter Bogdanoff
> On Jul 23, 2024, at 9:33 AM, Craig Newman via use-livecode
> wrote:
>
> Hi.
>
> You need, at a minimum to avoid an error, at least this;
>
> put number of imgs into ni
>
> add 1 to Nflds
>
>
Hi.
You need, at a minimum to avoid an error, at least this;
put number of imgs into ni
add 1 to Nflds
put id of img ni into tid
put imageData of img ni
but only the very last line actually does anything, placing the imageData of
ing ni into the message box. What is the other stuff for, a
Hi list,
I have the following script :
create image
put number of imgs into ni
put id of img ni into tid
set filename of img id tid to myFile
put imageData of img id tid into pimage
-- many lines for imagedata analysis
crop image id tid to rect trect
I get this error :
crop: object is
Hi list,
I have the following script :
create image
put number of imgs into ni
add 1 to Nflds
put id of img ni into tid
put imageData of img
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscrib