F
feifan
Unregistered / Unconfirmed
GUEST, unregistred user!
有一段代码:
var
ii : integer;
b,btmp : Tbitmap;
begin
B := TBitmap.Create;
B.Width := 800;
B.Height := 640;
btmp := TBitmap.Create;
btmp.Width := 800;
btmp.Height := 640;
b.Canvas.TextOut(10,10,'You are Great! I think you will succeed!');
for ii := 0 to B.Width do
BitBlt(btmp.Canvas.Handle,ii,0,1,B.Height,b.Canvas.Handle,b.Width - ii -1,0,srccopy);
Canvas.Draw(0,0,btmp);
end;
这端代码实现了图象的镜像,但是速度有点慢?有没有更快的方法,请高手明示!
var
ii : integer;
b,btmp : Tbitmap;
begin
B := TBitmap.Create;
B.Width := 800;
B.Height := 640;
btmp := TBitmap.Create;
btmp.Width := 800;
btmp.Height := 640;
b.Canvas.TextOut(10,10,'You are Great! I think you will succeed!');
for ii := 0 to B.Width do
BitBlt(btmp.Canvas.Handle,ii,0,1,B.Height,b.Canvas.Handle,b.Width - ii -1,0,srccopy);
Canvas.Draw(0,0,btmp);
end;
这端代码实现了图象的镜像,但是速度有点慢?有没有更快的方法,请高手明示!