Replace colors in imageData under linux doesn't work

Jeffrey Massung massung at gmail.com
Sun Mar 7 10:18:21 EST 2010


Is the Linux machine you are on PPC (read: big endian)?

Jeff M.

On Mar 7, 2010, at 8:27 AM, Ludovic Thébault wrote:

> 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 !_______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list