本文整理自网络,侵删。
procedure TForm1.Timer1Timer(Sender: TObject);
var
p:TPoint;
abc:blendFunction ;
x1,x2,y1,y2:integer;
begin
form1.doublebuffered:=true;
image1.picture.graphic:=Nil;
abc.AlphaFormat:=0;
abc.BlendFlags:=1;
abc.BlendOp:=AC_SRC_OVER;
abc.SourceConstantAlpha:=255;
GetCursorPos(p);
x1:=p.x-20;
x2:=p.x+20;
y1:=p.y-20;
y2:=p.y+20;
//AlphaBlend(image1.Canvas.Handle,0,0,image1.Width,image1.Height,getdc(0),x1,y1,x2,y2,abc);
Windows.AlphaBlend(image1.Canvas.Handle,0,0,image1.Width,image1.Height,getdc(0),x1,y1,50,50,abc);
end;
相关阅读 >>
Delphi编写的android程序获取root权限实现(2015.4.15更新,支持android 4.4)
Delphi monthoftheyear、weekoftheyear、weekofthemonth、dayoftheyear … 相对时间
Delphi 2009 之 tcategorypanelgroup[1]: chevronalignment 等
Delphi datasnap中间件如何控制长连接的客户端连接?
更多相关阅读请进入《Delphi》频道 >>