问题
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