Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2004.06.20;
Скачать: [xml.tar.bz2];

Вниз

Перевод цветов   Найти похожие ветки 

 
hgd   (2004-06-08 18:48) [0]

Вопрос
Есть цвет RGB
По формуле:
X:=B shl 16 or G shl 8 or R
переводим его в цвет TColor.
Что это за цвет TColor, это просто номер из 16bit цветов. Тоесть если он выдает 100000 = номер цвета?

И еще если кто знает что такое luminance и как в него перевести?


 
TUser ©   (2004-06-08 18:53) [1]

the low three bytes represent RGB color intensities for blue, green, and red, respectively. The value $00FF0000 (Delphi) or 0x00FF0000 (C++) represents full-intensity, pure blue, $0000FF00 (Delphi) or 0x0000FF00 (C++) is pure green, and $000000FF (Delphi) or 0x000000FF (C++) is pure red. $00000000 (Delphi) or 0x00000000 (C++) is black and $00FFFFFF (Delphi) or 0x00FFFFFF (C++) is white.

If the highest-order byte is zero, the color obtained is the closest matching color in the system palette. If the highest-order byte is one ($01 or 0x01), the color obtained is the closest matching color in the currently realized palette. If the highest-order byte is two ($02 or 0x02), the value is matched with the nearest color in the logical palette of the current device context.


 
hgd   (2004-06-08 18:58) [2]

Ничего не понял


 
TUser ©   (2004-06-08 19:01) [3]

Я в вопорсе, честно говоря, тоже понял мало. Тебе надо почитать про то, в каком виде хранится цвет в TColor"е? Тогда я просто кинул нужный кусок спраки. Если не то - тогда извиняй.


 
hgd   (2004-06-08 19:23) [4]

А что такое luminance и как в него перевести из RGB?


 
Clickmaker ©   (2004-06-08 19:30) [5]


> hgd   (08.06.04 19:23) [4]
> А что такое luminance и как в него перевести из RGB?

luminance - енто яркость. Копай в сторону GDI+


 
Clickmaker ©   (2004-06-08 19:33) [6]

А вообще
http://www.yandex.ru/yandsearch?text=RGB+%E2+HSL&stype=www


 
hgd   (2004-06-08 19:46) [7]

А luminance=HLC


 
Gero ©   (2004-06-08 20:10) [8]

Может GraphUtil.pas чем-то поможет?


 
grom   (2004-06-09 07:45) [9]

Может http://www.zdima-iv.nm.ru/delphi.html чем-то поможет?
исходник Color Choose v1.2



Страницы: 1 вся ветка

Форум: "Основная";
Текущий архив: 2004.06.20;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.03 c
1-1086703741
BlackLord2003
2004-06-08 18:09
2004.06.20
ClipText


11-1074520305
avakss
2004-01-19 16:51
2004.06.20
statusctl


14-1085986886
temp2
2004-05-31 11:01
2004.06.20
Как сделать нормальную XP-шную иконку?


14-1086083574
000
2004-06-01 13:52
2004.06.20
Помогите найти фотки!!!


3-1085643217
Kraw
2004-05-27 11:33
2004.06.20
Программирование TDBGrid





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский