imagedata and alpha byte

Richmond Mathewson richmondmathewson at gmail.com
Wed May 9 13:51:29 EDT 2018


The inevitable question has to be why you are doing that in such a 
fiddly sort of way.

Richmond.

On 9/5/2018 8:49 pm, jbv via use-livecode wrote:
> Hi list,
> Still struggling with imagedata, I am trying to modify the transparency
> of an image by manipulating pixel by pixel the alpha byte.
> I tried with numToChar(0) and binaryEncode("B*","00000000") but to no
> avail...
> OTOH manipulating the RVB channel works fine.
>
> Any idea on how modify the alpha channel of the imagedata of a image,
> and then exporting the image as PNG with the modified transparency ?
>
> Thanks in advance.
> jbv
>
>
> _______________________________________________
> 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