G guard Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-30 #1 请问Windows自带的画图软件中调色板的色调是怎么根据RGB计算出来的? 最好给出程序,急用,谢谢。
P Pearl. Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-30 #2 嘻嘻 var r, g, b: byte; colors: array [1..1000] of TColor; i, j, k: Integer; begin r := 0; g := 0; b := 0; for i := 1 to 10do begin inc(r, 10); for j := 1 to 10do begin inc(g, 10); for k := 1 to 10do begin inc(b, 10); colors[i*j*k] := rgb(r, g, b); end; end; end; end;
嘻嘻 var r, g, b: byte; colors: array [1..1000] of TColor; i, j, k: Integer; begin r := 0; g := 0; b := 0; for i := 1 to 10do begin inc(r, 10); for j := 1 to 10do begin inc(g, 10); for k := 1 to 10do begin inc(b, 10); colors[i*j*k] := rgb(r, g, b); end; end; end; end;
G guard Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-01 #3 不好意思,我的意思是画图软件中选取自定义颜色时,RGB和色调的对照关系.