G
geshengping
Unregistered / Unconfirmed
GUEST, unregistred user!
本人想把DBImage中的图像打印出来,用以下这段程序打印的结果比真实图像
小,不知各位高手有没有简单有效的方法。
Printer.BeginDoc;
with Printer do
begin
ScaleX := GetDeviceCaps(Handle, logPixelsX) div PixelsPerInch;
ScaleY := GetDeviceCaps(Handle, logPixelsY) div PixelsPerInch;
R := Rect(20, 10, DBImage1.Picture.Width * ScaleX,
DBImage1.Picture.Height * ScaleY);
Canvas.StretchDraw(R, DBImage1.Picture.Graphic);
end;
EndDoc;
小,不知各位高手有没有简单有效的方法。
Printer.BeginDoc;
with Printer do
begin
ScaleX := GetDeviceCaps(Handle, logPixelsX) div PixelsPerInch;
ScaleY := GetDeviceCaps(Handle, logPixelsY) div PixelsPerInch;
R := Rect(20, 10, DBImage1.Picture.Width * ScaleX,
DBImage1.Picture.Height * ScaleY);
Canvas.StretchDraw(R, DBImage1.Picture.Graphic);
end;
EndDoc;