crop image
Craig Newman
craig at starfirelighting.com
Tue Jul 23 12:08:48 EDT 2024
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, at 11:59 AM, Peter Bogdanoff via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> 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 <use-livecode at lists.runrev.com> wrote:
>>
>> 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, and what are you trying to accomplish?
>>
>>
>>
>> Craig
>>
>>
>>> On Jul 23, 2024, at 9:10 AM, jbv via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>
>>> 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 at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list