以下代码在一个循环中逐像素改变ExampleShow.OutputBitMap的内容,每改变一次就在TImage控件上显示一次OutputBitMap的内容,以此实现类似动画的效果。
var
i: integer;
b: boolean;
begin
i:=400;// while i<1500 do
begin
i:=i+1;
b:=ExampleShow.GetOutPutBitMap(Screen, i);//更改ExampleShow.OutputBitMap的像素内容,成功返回true
if b=true then
Image1.Picture.Bitmap.Assign(ExampleShow.OutputBitMap);
end;
end;
以上代码执行以后,只见i=1500时ExampleShow.OutputBitMap的画面,没有逐帧变化的视觉效果,请问原因。
var
i: integer;
b: boolean;
begin
i:=400;// while i<1500 do
begin
i:=i+1;
b:=ExampleShow.GetOutPutBitMap(Screen, i);//更改ExampleShow.OutputBitMap的像素内容,成功返回true
if b=true then
Image1.Picture.Bitmap.Assign(ExampleShow.OutputBitMap);
end;
end;
以上代码执行以后,只见i=1500时ExampleShow.OutputBitMap的画面,没有逐帧变化的视觉效果,请问原因。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货