Вниз
Скачать: CL | DM;

HTML colors   Найти похожие ветки 

← →
Adil   (2003-05-18 12:09) [0]

Как переоброзовать TColor в HTML код.
Например $004080FF заменить на #FF8040.
Или работать с RGB


← →
Palladin ©   (2003-05-18 12:37) [1]


function AsHTMLColor(c:TColor):string;
begin
result:="#"+inttohex(LongRec(C).Bytes[2],2)+inttohex(LongRec(C).Bytes[1],2)+inttohex(LongRec(C).Bytes[0],2);
end;


← →
Adil   (2003-05-18 12:56) [2]

Спосиба.Но там есть неболшая ошика дожен быть:

result:="#"+inttohex(LongRec(C).Bytes[0],2)+inttohex(LongRec(C).Bytes[2],2)+inttohex(LongRec(C).Bytes[1],2);


← →
Palladin ©   (2003-05-18 13:08) [3]

да, перепутал, ты прав


← →
Fenik ©   (2003-05-18 13:09) [4]

http://delphibase.endimus.com/?action=viewfunc&topic=mediacolors&id=10127



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

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.014 c
3-94746
Barman
2003-05-09 14:45
2003.05.29
ADO


14-95101
Bboy
2003-05-11 13:09
2003.05.29
Можно ли работать с конференциями через Bat???


3-94724
Guest1231231
2003-05-08 15:34
2003.05.29
row cannot be located for updating


1-94935
adogg
2003-05-17 16:29
2003.05.29
Memo


3-94743
Minotavr
2003-05-08 19:16
2003.05.29
Firebird default character




   Наверх