Images and arrays...

Tom Glod tom at makeshyft.com
Tue Jul 5 23:22:38 EDT 2022


imagedata does not include alpha

as odd as it sounds .... "the text of image" contains all of the data.

:D

On Tue, Jul 5, 2022 at 9:48 PM Bob Sneidar via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Put the imageData?
>
> Sent from my iPhone
>
> > On Jul 5, 2022, at 18:40, Paul Dupuis via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> >
> > I am drawing a blank:
> >
> > If I have the following code:
> >
> >                   export snapshot from rect tRect of player
> "mediaConvert" of stack "libHrAPI" to tImage as PNG
> >                   put tImage into pRefArray[tRef]
> >
> > The actual image (not a reference, such as a long ID) is placed in the
> tRefArray[tRef] array element
> >
> > However, if I have a variable tImageID that contains a reference to an
> image such as
> >
> > image id 10328 of card id 10001 of stack "X"
> >
> > How do I get that actual Image stored in the array?
> >
> > put tImageID into pRefArray[tRef] -- results in the array element
> storing the long ID
> >
> > put (tImageID) into pRefArray[tRef] -- also results in the array element
> storing the long ID. I thought the () might for the long ID to be evaluated
> to an actual image
> >
> >
> >
> >
> > _______________________________________________
> > 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