Yo, im trying to get the color of red, green and blue by byte - i have 3 labels lblRed, lblGreen, lblBlue, and 3 scrollbars.
i want to show the correct value in each label 0-255 and also scrollbar positions, hope this makes sense:
doesnt seem to work, basically i just need to find the rgb value for each color in panel1, red, green and blue.
Thanks
i want to show the correct value in each label 0-255 and also scrollbar positions, hope this makes sense:
Code:
procedure TForm1.RetrieveCurrentSkinColors;
var
R,G,B: Byte;
begin
{assign each color byte value from the panel}
R:= Panel1.Color;
G:= Panel1.Color;
B:= Panel1.Color;
{set label captions and scrollbar positions}
lblRed.Caption:= IntToStr(R);
lblGreen.Caption:= IntToStr(G);
lblBlue.Caption:= IntToStr(B);
barRed.Position:= R;
barGreen.Position:= G;
barBlue.Position:= B;
{put retrieved color into panel}
Panel2.Color:= Panel1.Color;
end;
doesnt seem to work, basically i just need to find the rgb value for each color in panel1, red, green and blue.
Thanks