Replace colors in imageData under linux doesn't work
Ludovic Thébault
ludovic.thebault at laposte.net
Sun Mar 7 09:27:59 EST 2010
Hello,
I've made a map wih several sectors. Each sector have a specific color.
For example sector one have this color : 245, 255, 255
sector two : 215,255,255
sector three : 194,255,255
...
The map appear in blue (each sector with a different blue)
Under MacOS and Windows, a script replace the color of a sector with an other. But under linux (Ubuntu, Mandriva, Xubuntu) it doesn't work. I've tested with Rev Studio 2.91 and RevMedia 4.
the script :
get the imageData of image "carte"
replace (numToChar(0) & numtochar(230) & numtochar(255) & numtochar(255)) with \
(numToChar(0) & numtochar(45) & numtochar(155) & numtochar(90)) in it
Under Linux, my map appear yellow !
Here, a screenshot with the original map, the new map under MacOS and under Linux
http://img.skitch.com/20100307-11umgehf9gmes8p9k6yknc7w8d.jpg
Any ideas ? and any workaround ? Thanks !
More information about the use-livecode
mailing list