swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

colormap problem


From: Snow Paul
Subject: colormap problem
Date: Mon, 14 Jan 2002 00:27:33 +0800 (CST)

  Hi!
  I am using swarm and I hope my swarm application can
read color image files.
  Originally,I attempted to define my 16 color palette
in colormap from reading a palette file(text format).I
could not make it.So I decided to do it by myself,I
define my RGB palette just like this:

[colorMap setColor: 0  ToRed: 115.0  Green: 61.0 
Blue: 18.0;];
[colorMap setColor: 1  ToRed: 48.0   Green: 170.0 
Blue: 46.0];
[colorMap setColor: 2  ToRed: 150.0  Green: 158.0 
Blue: 76.0]; 
[colorMap setColor: 3  ToRed: 168.0  Green: 225.0 
Blue: 194.0]; 
[colorMap setColor: 4  ToRed: 218.0  Green: 217.0 
Blue: 178.0]; 
[colorMap setColor: 5  ToRed: 210.0  Green: 83.0 
Blue: 18.0]; 
[colorMap setColor: 6  ToRed: 222.0  Green: 172.0 
Blue: 115.0]; 
[colorMap setColor: 7  ToRed: 45.0  Green: 214.0 
Blue: 51.0]; 
[colorMap setColor: 8  ToRed: 218.0  Green: 238.0 
Blue: 221.0]; 
[colorMap setColor: 9  ToRed: 44.0  Green: 123.0 
Blue: 44.0]; 
[colorMap setColor: 10 ToRed: 170.0 Green: 122.0 Blue:
b10]; 
[colorMap setColor: 11 ToRed: 94.0 Green: 217.0 Blue:
44.0]; 
[colorMap setColor: 12 ToRed: 114.0 Green: 122.0 Blue:
71.0]; 
[colorMap setColor: 13 ToRed: 102 Green: 172.0 Blue:
61.0]; 
[colorMap setColor: 14 ToRed: 219.0 Green: 105.0 Blue:
37.0]; 
[colorMap setColor: 15 ToRed: 166.0 Green: 177.0 Blue:
145.0]; 
    But I got a raster with onthing on it.It wat
blank! Maybe the only color I got was white!I do not
know the reason,do me a favour please !I use Swarm
2.1.1 on win98.

Thanks!

Paul Snow
address@hidden



_________________________________________________________
Do You Yahoo!? 登录免费雅虎电邮! http://mail.yahoo.com.cn

<font color=#6666FF>无聊?郁闷?高兴?没理由?都来聊天吧!</font>―― 
雅虎全新聊天室! http://cn.chat.yahoo.com/c/roomlist.html

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]