|
|
导航: |
论坛 -> 报表专区
斑竹:sunyesy,iamdream |
|
作者: |
|
2023/1/9 14:12:36 |
标题: |
TO flying wang: 和您讨论一个frxExportPDF.pas中的修改问题, 关于Scale := Max(Scale, Scale * Sqrt(PictureSquare / Tem |
浏览:372 |
|
加入我的收藏 |
楼主: |
我要报表中, 会抓到图片也打印出来,
同时, 我设置了frxPDFExport1.SaveOriginalImages:=True; . 这样, 导出的pdf, 就会打印出图片的全部像素( 我可以在pdf中放大,放大, 看到真实的图像)
但我发现: 您在frxExportPDF.pas中,有修改代码:
//fix by flying wang. if PictureSquare > TempSquare then Scale := Max(Scale, Scale * Sqrt(TempSquare / PictureSquare)); if PictureSquare < TempSquare then Scale := Min(Scale, Scale * Sqrt(PictureSquare / TempSquare));
经我测试: 如果使用你这个代码, 打印出的图像像素很低. 还是使用原先它的代码(如下):
if PictureSquare > TempSquare then Scale := Max(Scale, Scale * Sqrt(PictureSquare / TempSquare));
才能出原始像素图片(可无限放大)
---->无限放大到原始像素的好处: 比如: 我给别人pdf档, 上面有打印照片, 别人可以自已放大pdf,就看到原始照片.
----------------------------------------------
... |
|