X
xuehua_ljy
Unregistered / Unconfirmed
GUEST, unregistred user!
这里用canvas画了两幅图像image1和image2,我把它保存成一个图像,存放到image3中,然后进行保存,但是由于image2比较长,存到image3中只能保存image2中的一部分,不能完全保存。如何才能保存完整图像呢?
部分代码如下:
Image3.Canvas.Draw(1,1,image1.Picture.Graphic );
Image3.Canvas.Draw(1,image1.Height,image2.Picture.Graphic );
image3.Width:=image1.Width;
image3.Height:=image1.Height+image2.Picture.height;
if SavePictureDialog1.Execute then
begin
Image3.Picture.SaveToFile(SavePictureDialog1.FileName);
end;
多谢帮忙
部分代码如下:
Image3.Canvas.Draw(1,1,image1.Picture.Graphic );
Image3.Canvas.Draw(1,image1.Height,image2.Picture.Graphic );
image3.Width:=image1.Width;
image3.Height:=image1.Height+image2.Picture.height;
if SavePictureDialog1.Execute then
begin
Image3.Picture.SaveToFile(SavePictureDialog1.FileName);
end;
多谢帮忙