PowerShape 使用两种方法来打印窗口:一种用于仅包含线框的视图,另一种用于阴影图像。
如果视图仅包含线框,则以打印机的全分辨率进行打印。
如果视图包含颜色阴影,将使用 OpenGL 将其渲染为位图,并会将此位图发送到打印机。由于位图很大,因此以打印机的全分辨率生成它可能不切实际。相反,PowerShape 会生成与打印机具有相同高宽比的位图,但分辨率受限,以使其大小不会超过该限制。
该限制通过以下文件中的资源设置:
...\PowerShapexxxxx\sys\misc\powershape.con
用于设置大小的相关的代码部分为:
#
# Printing colour shading.
#
# This resource controls the size (in Mb) of the intermediate bitmap
# which is used to print colour shaded images. Increasing its value
# increases the printed resolution at the cost of temporary memory
# usage and file size. Decreasing it reduces print resolution and
# memory and file size requirements. 15Mb has been found to be a good
# compromise on plain A4 paper in a typical inkjet printer.
# print_opengl_bitmap_size: 15
设置大小的步骤:
...\PowerShapexxxxx\sys\misc\powershape.con
print_opengl_bitmap_size: 15
对于此资源,您可以尝试使用较大的值。图像的每个像素都需要 3 个字节,因此如果您希望打印分辨率为 X x Y 个点,则将此资源设置为:
X * Y * 3 / 1,000,000