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

RGB - яркость   Найти похожие ветки 

← →
Anatoly P   (2003-07-18 12:53) [0]

Как цвету, заданному через RGB добавить (убавить) яркость?


← →
Юрий Федоров ©   (2003-07-18 12:59) [1]

type
TPercent = 0..100;

function IncreaseColorBrightness(Color : TColor; Percent: TPercent) : TColor;
var r, g, b : Byte;
begin
Color:=ColorToRGB(Color);
r:=GetRValue(Color);
g:=GetGValue(Color);
b:=GetBValue(Color);
r:=r + muldiv(255-r,Percent,100);
g:=g + muldiv(255-g,Percent,100);
b:=b + muldiv(255-b,Percent,100);
Result:=RGB(r,g,b);
end;


← →
Anatoly P   (2003-07-18 20:04) [2]

Спасибо!



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

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



Память: 0.44 MB
Время: 0.028 c
14-100916
Viktor Kushnir
2003-07-13 09:18
2003.07.31
XML


1-100671
Bless
2003-07-17 17:57
2003.07.31
Как получить TreeNode по itemID?


1-100739
Amid
2003-07-16 10:27
2003.07.31
Cursor.


14-100907
AlexT1000
2003-07-14 11:31
2003.07.31
Внедрение в OutLook


1-100767
td
2003-07-16 18:37
2003.07.31
PostMessage




   Наверх