为什么 Crystal Report 中的白色背景图像不显示为纯白色? [英] Why images in Crystal Report with white background doesn't show as pure white?
问题描述
我将图像放入水晶报表中(使用 Crystal Reports for Visual Studio 2005).图片是白色背景的产品标志,报告也是白色背景.但是当我运行报告时,您会发现它不是很白.灰白色几乎不可见,但在打印时可见且更明显.
I'm putting an image in a crystal report (using Crystal Reports for Visual Studio 2005). The image is a product logo with a white background, and the report has a white background too. But when I run the report you can see it's not quite white. The off-white color is barely visible, but it is visible and more so when printed.
我尝试了多种图像格式,也尝试了透明图像,但它们似乎不起作用(透明像素显示为黑色).当我使用不同的图像时,我注意到微弱的非白色会发生变化 - 好像它是图像中颜色的函数.
I've tried a variety of image formats, and tried transparent images too but they don't seem to work (transparent pixels show as black). When I use a different image I notice that the faint non-white color changes - as if it's a function of the colors in the image.
其他人遇到过这个吗?有什么建议吗?
Anyone else encountered this? Any suggestions?
推荐答案
可以直接在报表中勾选选项:Retain Original Image Color Depth解决.
It can be solved directly in the report by checking the option: Retain Original Image Color Depth.
文档说:
如果您希望报告中的图像在封装时保持其原始颜色深度,请选择此选项.否则,所有图像在封装之前都将转换为每像素 8 位.
If you want images in your report to keep their original color depth when they are encapsulated, select this option. Otherwise, all images are converted to 8 bits per pixel before being encapsulated.
要检查此选项,请转到:
To check this option go to:
文件
-> 报告选项
-> 保留原始图像颜色深度
.
这篇关于为什么 Crystal Report 中的白色背景图像不显示为纯白色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!