tags:

views:

136

answers:

0
using (FileStream outStream = new FileStream(path.LocalPath, FileMode.Create))
{
    JpegBitmapEncoder encoder = new JpegBitmapEncoder();
    encoder.Frames.Add(BitmapFrame.Create(renderBitmap));
    encoder.Save(outStream);
}

After I save an image using the above code, it is having a red tint on it. If I open in adobephotoshop and uncheck the icc profile, red tint tends to disappear. So I am thinking to set icc profile to jpegbitmapencoder. We have a property ColorContexts for jpegbitmapencoder. But I am unable to set it. Any Suggestions plz

Thanks in advance.