打印时,我使用了另一个Image作为转换
var
imgPath: string;
iResult: Integer;
begin
imgPath := ExtractFilePath(Application.ExeName);
Image1.Picture.SaveToFile(imgPath + 'temp.bmp');
Image2.Picture.LoadFromFile(imgPath + 'temp.bmp');
Image2.Stretch := True;
iResult := Application.MessageBox(你真的要打印吗?', '打印提示', MB_YESNO + MB_ICONINFORMATION);
if iResult = IDNO then
Exit
else
begin
with printerdo
try
Orientation := poLandscape;
begin
Doc;
Canvas.StretchDraw(Canvas.ClipRect, Image2.Picture.Graphic);
EndDoc;
except
Abort;
raise;
end;
end;