I am trying to save images in wpf application but after saving some reddish tint the color appears in these images
I am trying to save images in a wpf application, but after saving, there is a reddish tint in these images and the image is also lost. I am using PNGBitmapEncoder for this and save the imags in PNG format. I do not know what's going on.
Nobody Plz give me a solution. I've been trying for so many days. Plz help me to solve this problem.
Thanks in advance
+1
ibrahimkhan
a source
to share
1 answer
You will need to post your code and maybe an example of what the wrong image looks like.
The most likely explanation is that you have a wrong match between the order of the red green and blue pixels in memory than the file format is expected to do, or that the red value is increased by the green and blue somehow.
Are you also trying to resize the image? This might explain the blur.
0
a source to share