var
ScaleX, ScaleY: Integer;
R: TRect;begin
Printer.BeginDoc;
with Printer do
try
ScaleX := GetDeviceCaps(Handle, logPixelsX) div PixelsPerInch;
ScaleY := GetDeviceCaps(Handle, logPixelsY) div PixelsPerInch;
R := Rect(0, 0, Image1.Picture.Width * ScaleX,
Image1.Picture.Height * ScaleY);
Canvas.StretchDraw(R, Image1.Picture.Graphic);
finally
EndDoc;
end;
end;
ScaleX, ScaleY: Integer;
R: TRect;begin
Printer.BeginDoc;
with Printer do
try
ScaleX := GetDeviceCaps(Handle, logPixelsX) div PixelsPerInch;
ScaleY := GetDeviceCaps(Handle, logPixelsY) div PixelsPerInch;
R := Rect(0, 0, Image1.Picture.Width * ScaleX,
Image1.Picture.Height * ScaleY);
Canvas.StretchDraw(R, Image1.Picture.Graphic);
finally
EndDoc;
end;
end;
解决方案 »
- 测试...
- 请问 统计各 型号的 销售 比例 的 sql 语句 如何写??????????
- PageControl组件的tabsheet为什么不能命中文名呢?怎么解决?
- 使用OLE播放PowerPoint的问题(!!!!!!高分!!!!!!)
- DEPHI中也有这三种继承方式吗?
- 在学DELPHI数据类型中的一个困惑!
- dbgrideh数据统计问题
- onkeyup的参数key代表??--怎样用---〉新手--〉郑少爷
- 存储高手看过来!(可能很简单!)
- 关于DELPHI中读文本文件
- 为什么我新建一个窗体,放一个菜单在上边,我没有设置快捷键,但编译后它自己会显示出来。
- 初学delphi,请教两个小问题?
请问:Dbgrid怎么打印??