Assign a color profile to a bitmap

View as Markdown

BitmapColor ManagementColor ProfileWrite

Replaces the embedded color profile of an image with a new one.

Code Snippet

using (var bitmap = new Bitmap("Chicago.jpg"))
{
    bitmap.ColorProfile = ColorProfile.FromSrgb();

    bitmap.Save("SetEmbeddedProfile.jpg");
}

Input

Chicago.jpg

Chicago.jpg

Output

SetEmbeddedProfile.jpg

SetEmbeddedProfile.jpg

Used APIs