最好是在生成动画的软件中做.
在delphi中做也可以
用TCanvas.CopyRect就可以满足你的要求, 不过速度不一定保证
下面是某一种算法
procedure TForm1.Button2Click(Sender: TObject);
var
newbmp: TBitmap;
i,bmpheight,bmpwidth:integer;
begin
newbmp:= TBitmap.Create;
newbmp.Width:=image1.Width;
newbmp.Height:=image1.Height;
bmpheight:=image1.Height;
bmpwidth:=image1.Width;
for i:=0 to bmpheight do
begin
Sleep(100);
newbmp.Canvas.CopyRect(Rect(0,bmpheight-i,bmpwidth,bmpheight),
image1.Canvas,
Rect(0,0,bmpwidth,i));
form1.Canvas.Draw(120,100,newbmp);
end;
newbmp.free;
end;
在delphi中做也可以
用TCanvas.CopyRect就可以满足你的要求, 不过速度不一定保证
下面是某一种算法
procedure TForm1.Button2Click(Sender: TObject);
var
newbmp: TBitmap;
i,bmpheight,bmpwidth:integer;
begin
newbmp:= TBitmap.Create;
newbmp.Width:=image1.Width;
newbmp.Height:=image1.Height;
bmpheight:=image1.Height;
bmpwidth:=image1.Width;
for i:=0 to bmpheight do
begin
Sleep(100);
newbmp.Canvas.CopyRect(Rect(0,bmpheight-i,bmpwidth,bmpheight),
image1.Canvas,
Rect(0,0,bmpwidth,i));
form1.Canvas.Draw(120,100,newbmp);
end;
newbmp.free;
end;
解决方案 »
- 鼠标放上不显示
- 解决就散分,在线等
- QuickRpt, QR4Const.dcu, QRSearchDlg.dcu?
- 熟悉Delphi和VC的高手请进
- 简单问题
- TIdSocketHandle是什么类?
- MIDAS中报不支持CreateRemote()方法
- 免费的开发包,不知道有多少人愿意要???
- 请问Delphi5.0,在WIN2000在使用正常吗?
- 当ClientSocket端非法退出时(如:直接按热启动),ServerSocket端怎样才能检测到呢?
- 如何取消系统消息队列中的某一条消息的执行?
- Why such a strange thing happen to me?When I create a new form
那里有DELPHI做屏保的资料或代码?
具体来说,只需要使用下面的一个API调用就可以啦. SystemParametersInfo(97,bPasswordEnabled,nil,0); 这里:
bPasswordEnabled=1 则CAD失效;
bPasswordEnabled=0 则CAD有效.
同时,Alt-TAB也同时失效了。