//从以前的程序中截了一端自己改改吧
procedure tform1.byc;
var block,i,h:integer;
begin
image2.Visible :=true;
h:=0;
case combobox1.ItemIndex of
0:begin
block:=image1.height div 15;
repeat
h:=h+1;
for i:=0 to 14 do
begin
image2.Canvas.CopyRect (rect(0,i*block,image1.width,i*block+h),image1.canvas,rect(0,i*block,image1.width,i*block+h));
end;
image2.Refresh ;
s:=3;
timer1.Enabled :=true;
repeat
application.ProcessMessages ;
until timer1.Enabled=false;
until h>=block;
image2.Canvas.CopyRect (rect(0,0,image1.width,image1.height),image1.canvas,rect(0,0,image1.width,image1.height));
end;
1:begin
block:=image1.width div 20;
repeat
h:=h+1;
for i:=0 to 20 do
begin
image2.Canvas.CopyRect (rect(i*block,0,i*block+h,image1.height),image1.canvas,rect(i*block,0,i*block+h,image1.height));
end;
image2.Refresh ;
s:=3;
timer1.Enabled :=true;
repeat
application.ProcessMessages ;
until timer1.Enabled=false;
until h>=block;
image2.Canvas.CopyRect (rect(0,0,image1.width,image1.height),image1.canvas,rect(0,0,image1.width,image1.height));
end;
end;
end;