imageData and 6.1.1 and bug ?

Ludovic Thébault ludovic.thebault at laposte.net
Sat Sep 28 14:42:09 EDT 2013


Hello,

I've a stack created with Livecode 5.
In this stack, i've a script to replace colors in a png image :

    get the imageData of image "carte" 

## in this picture i've several zones, each with one specific color ex : "234,255,255", "191,255,255",…. and i replace for example the color "191,255,255" with an other color with the numtochar function.

the imageData returned with Livecode 5.5.5 is : ### ? = null character
?øˇˇ?????™ˇˇ?™ˇˇ?       
### with the chartonum function :
0 191 255 255 0 0 0 0 0 170 255 255 0 170 255 255
The script work very well.

an transparent pixel (it's a png picture) have '0 0 0 0' value with chartonum()

the same imageData returned with LiveCode 6.1.1 is :
ˇøˇˇˇ???ˇ™ˇˇˇ™ˇˇˇ
### with the chartonum function :
255 191 255 255 255 0 0 0 255 170 255 255 255 170 255 255 255
so my script doesn't work… some null char aren't null anymore ?

an transparent pixel (it's a png picture) have '0 111 169 69' value with chartonum()


What happen ? It's a bug ? Or it's a new comportment and i need to modify my script ?

Thanks !



More information about the use-livecode mailing list