Главная страница
    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.034 c
14-1086074727
AlexeyITN
2004-06-01 11:25
2004.06.20
Сколько стоит лицензированный Delphi 4-5 ?


3-1085430926
LORDMAXX
2004-05-25 00:35
2004.06.20
Плз нелп, реляционная алгебра нужна.


3-1084788202
evgen
2004-05-17 14:03
2004.06.20
Как экспортировать содержимое DBGrid в Excel


9-1077830655
spogi
2004-02-27 00:24
2004.06.20
sozdaniie i proverka


14-1086207122
Константинов
2004-06-03 00:12
2004.06.20
Вопрос геймерам





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский