線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1087
推到 Plurk!
推到 Facebook!

顏色配置問題

尚未結案
yachu721
初階會員


發表:51
回覆:98
積分:44
註冊:2003-07-13

發送簡訊給我
#1 引用回覆 回覆 發表時間:2005-10-06 22:58:36 IP:59.104.xxx.xxx 未訂閱
我使用一個Panel元件,欲修改其顏色 但是配置顏色的時候,覺得內定的顏色真的很少 有找過文章但都是以程式的方式來解決 這樣會很麻煩 我發現在color的屬性上打數字也可以配色 但是不知道他的規則是如何 色票軟體該如何配合應用呢 有大大了解我的意思嗎~~謝了
RedSnow
版主


發表:79
回覆:1322
積分:845
註冊:2003-12-15

發送簡訊給我
#2 引用回覆 回覆 發表時間:2005-10-06 23:51:19 IP:61.230.xxx.xxx 未訂閱
yachu721 您好:    以下資料節錄自 BCB Help 對 TColor 的解說,請參考看看: If you specify TColor as a specific 4-byte hexadecimal number instead of using the constants defined in the Graphics unit, the low three bytes represent RGB color intensities for blue, green, and red, respectively. The value $00FF0000 represents full-intensity, pure blue, $0000FF00 is pure green, and $000000FF is pure red. $00000000 is black and $00FFFFFF is white. If the highest-order byte is zero ($00), the color obtained is the closest matching color in the system palette. If the highest-order byte is one ($01), the color obtained is the closest matching color in the currently realized palette. If the highest-order byte is two ($02), the value is matched with the nearest color in the logical palette of the current device context. 7 天天敲鍵盤 v 時時按滑鼠 8
yachu721
初階會員


發表:51
回覆:98
積分:44
註冊:2003-07-13

發送簡訊給我
#3 引用回覆 回覆 發表時間:2005-10-08 16:49:37 IP:203.67.xxx.xxx 未訂閱
謝謝大大的指導 $00FFFFFF中後六碼FFFFFF分別代表藍, 綠, 紅 可配合調色軟體使用 但$00的意思不太懂其意思可說明一下嗎~~ 謝謝大大的指導萬分感激~~
RedSnow
版主


發表:79
回覆:1322
積分:845
註冊:2003-12-15

發送簡訊給我
#4 引用回覆 回覆 發表時間:2005-10-08 18:03:36 IP:61.230.xxx.xxx 未訂閱
yachu721 您好:    $00 表示用 "系統調色盤" 中最相近的顏色來匹配。 $01 表示用 "現行調色盤" 中最相近的顏色來匹配。 $02 表示用 "現行繪圖裝置 (DC) 的邏輯調色盤" 較相近顏色來匹配。 7 天天敲鍵盤 v 時時按滑鼠 8
系統時間:2024-05-06 2:05:49
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!