Z
zikao419
Unregistered / Unconfirmed
GUEST, unregistred user!
if (StartX=EndX) and (StartY=EndY) then
begin
DrawFrame;
end
else
begin
image2.Picture :=nil;
with image2,Canvas do
begin
Width:=EndX-StartX;
Height:=EndY-StartY;
CopyRect(Rect(0,0,Width,Height),
image1.Canvas,
Rect(StartX,StartY,EndX,EndY));
end;
Image1.Picture :=nil;
image1.Visible :=False;
a:=copy(Bmp_name,1,length(Bmp_name)-4) + '.bmp';
image2.Picture.SaveToFile(a);
image2.Picture :=nil;
image2.Picture.LoadFromFile(a);
image2.Visible:=True;
end;
是这样的,我使这个程序将一副穿黑白竖条文衣服人的照片用这个程序截取其中的一部分图片,截取后的图片黑白竖条文衣服却变成黑白方格的衣服了,而其他的没发现有什么变化?我想请大家帮我解决这个问题,我要的是界却后的图片与原来图片一模一样的。如何解决?
begin
DrawFrame;
end
else
begin
image2.Picture :=nil;
with image2,Canvas do
begin
Width:=EndX-StartX;
Height:=EndY-StartY;
CopyRect(Rect(0,0,Width,Height),
image1.Canvas,
Rect(StartX,StartY,EndX,EndY));
end;
Image1.Picture :=nil;
image1.Visible :=False;
a:=copy(Bmp_name,1,length(Bmp_name)-4) + '.bmp';
image2.Picture.SaveToFile(a);
image2.Picture :=nil;
image2.Picture.LoadFromFile(a);
image2.Visible:=True;
end;
是这样的,我使这个程序将一副穿黑白竖条文衣服人的照片用这个程序截取其中的一部分图片,截取后的图片黑白竖条文衣服却变成黑白方格的衣服了,而其他的没发现有什么变化?我想请大家帮我解决这个问题,我要的是界却后的图片与原来图片一模一样的。如何解决?