如何从点的颜色中分离出R,G,B? s 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 var I:LongInt; R,G,B:Byte; Color:TColor;begin I:=ColorToRGB(Color); R:=I shr 24; G:=(I and $00FF0000) shr 16; B:=I and $0000FF00;end; 更正:var I:LongInt; R,G,B:Byte; Color:TColor;begin I:=ColorToRGB(Color); B:=I shr 24; G:=(I and $00FF0000) shr 16; R:=(I and $0000FF00) shr 8;end; http://expert.csdn.net/Expert/topic/1472/1472467.xmlR := Color and $FF;G := (Color and $FF00) shr 8;B := (Color and $FF0000) shr 16; (*Cvs:TCanvas*)Var R,G,B:Byte;Begin With Cvs Do Begin R:=GetRValue(Pixels[1,1]); G:=GetGValue(Pixels[1,1]); B:=GetBValue(Pixels[1,1]); End;End; 求解。。关于调用C#的DLL delphi adoquery 子查询 Delphi导出xml时的空节点问题 关于DeleteFile的问题,在线等! 怎么在画布上画虚框? 关于用QuickRep1打印走纸的问题 请问怎样实现模糊查询和用拼音查询汉字 辞职了,送分。 关于已经开发的产品软件提成问题? 如何用最简单的办法实现一个图像的连续移动 高分寻求一个程序,利用MSComm控件(或其他的)通过串口控制一个继电器,会者请进.. 在三层结构中将文件保存进数据库中的问题 存的文件字节为0 如何解决?100分
I:LongInt;
R,G,B:Byte;
Color:TColor;
begin
I:=ColorToRGB(Color);
R:=I shr 24;
G:=(I and $00FF0000) shr 16;
B:=I and $0000FF00;
end;
var
I:LongInt;
R,G,B:Byte;
Color:TColor;
begin
I:=ColorToRGB(Color);
B:=I shr 24;
G:=(I and $00FF0000) shr 16;
R:=(I and $0000FF00) shr 8;
end;
G := (Color and $FF00) shr 8;
B := (Color and $FF0000) shr 16;
Var
R,G,B:Byte;
Begin
With Cvs Do
Begin
R:=GetRValue(Pixels[1,1]);
G:=GetGValue(Pixels[1,1]);
B:=GetBValue(Pixels[1,1]);
End;
End;