I am trying to save images in wpf application, but after saving some pink color is coming on that images. Is there any solution for that?

不问归期 提交于 2020-01-06 03:07:34

问题


I am developing a WPF application. In which I am trying to save images. After saving the image, the color balance of the image turns to light reddish. How can we retain the original color of image after saving also. Is there any solution for that.


回答1:


I suspect you are saving images with transparency into a BITMAP format. Bitmaps do not support transparency as such, but usually use a colour replacement technology to give the illusion of transparency. The default colour for this is magenta I believe.

You might try saving the images either as PNG's, or perhaps there is a way to specify the transparency colour (I'm not sure).




回答2:


It sounds like this could be because your source image is in CMYK colour mode and your output is in RGB colour mode.

Could you please provide us with some more information about the source image and output image? (colour mode, image format, etc...)

Also, what sort of image processing are you doing? (resizing, saving a bitmap as a jpeg, etc...)



来源:https://stackoverflow.com/questions/867997/i-am-trying-to-save-images-in-wpf-application-but-after-saving-some-pink-color

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!