冬
冬月
Unregistered / Unconfirmed
GUEST, unregistred user!
我有一个高15,宽60的图片,想分割成高15,宽10的六个小图,第一个能分出来,第2个就显示不出来,Rect2:=Rect(10,0,20,15);这句这样对吗?
Rect1:=Rect(0,0,10,15);
Rect2:=Rect(10,0,20,15);
Image2.Height:=15;
Image2.Width:=10;
Image2.Canvas.CopyRect(Rect1,Image1.Canvas,Rect1);
Image3.Height:=15;
Image3.Width:=10;
Image3.Canvas.CopyRect(Rect1,Image1.Canvas,Rect2);
Rect1:=Rect(0,0,10,15);
Rect2:=Rect(10,0,20,15);
Image2.Height:=15;
Image2.Width:=10;
Image2.Canvas.CopyRect(Rect1,Image1.Canvas,Rect1);
Image3.Height:=15;
Image3.Width:=10;
Image3.Canvas.CopyRect(Rect1,Image1.Canvas,Rect2);