如何取消选中 wpf 中图像的 ICC 配置文件以消除图像中的红色调
我开发了一个 WPF 应用程序,用于使用 Canvas 保存图像。保存图像后,我在保存的图像上得到一些微红色调。我在 google 上搜索了解决方案,但没有找到任何解决方案。 经过很长时间我才知道在 Adobe Photoshop 中存在一些 IccProfiler。如果我们取消选中,我们也可以在保存后检索原始图像。 任何人都可以帮助我了解如何让 ICCProfiler 在 c# 和/或 WPF 中保存图像。
提前致谢。
I have developed a WPF Application for saving images by using Canvas.After saving the image iam getting some reddish tint on those saved images.I googled for the solution but i didnt got any solution for that. After long time i came to know that in Adobe Photoshop some IccProfiler is there.If we uncheck that we can retrieve the original image after saving also. Can anybody plz help me regarding this how to get that ICCProfiler to save images in c# and/or WPF.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的机器上是否设置了默认颜色配置文件? 查看“显示属性”->“设置”选项卡->“高级”->“颜色管理”选项卡。 该选项卡中是否选择了颜色配置文件?
我不知道如何更改 WPF 对颜色配置文件的操作,但您可以尝试删除计算机上任何主动选择的颜色配置文件(通过在“颜色管理”选项卡中执行此操作)以查看它是否会更改行为。 我无法想象为什么你最终会在图像上得到一个配置文件,除非机器有一个设置,但即使这样我也不会期望它。
Do you have a default colour profile set up on the machine? Have a look in Display Properties->Settings Tab->Advanced->Color Management tab. Is there a colour profile selected in that tab?
I don't know how to change what WPF does with colour profiles, but you could try removing any actively selected colour profiles on the machine (by doing it in the Colour Management tab) to see if it changes the behaviour. I can't think of why you'd end up with a profile on the image unless the machine had one setup, but even then I wouldn't expect it.
一切都是 WPF 的 sRGB。 如果您的显示器具有更宽的色域,您会得到过度饱和的颜色。 如果您想对应用程序进行颜色管理,请查看 nuget 包 Mscms.WPF。
Everything is WPF is sRGB. If your monitor has a wider gamut you get overly saturated colors. Have a look at the nuget package Mscms.WPF if you want to color-manage your application.