procedure TForm1.FormPaint(Sender: TObject);
var
g: TGPGraphics;
begin
g := TGPGraphics.Create(Canvas.Handle); g.DrawImage(img3, MakeRect(rt3));
g.Free;
end;
procedure TForm1.Timer3Timer(Sender: TObject);
begin
nl:=(nl mod 360) +10;
img3.Free;
img3:=TGPImage.Create('新建文件夹\'+inttostr(nl)+'.png');
Repaint;
inc(ll);
nl:=(nl+10) mod 360;
if ll>=200 then begin
timer3.Enabled:=false;
ll:=0;
end;
end;
png的图片是每一度一张 总共360张
使用这段代码模拟秒钟加速转动效果,发现cpu占太高,请教各位有么有好的实现方法
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货