Форум: "Основная";
Текущий архив: 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