Assign a color profile to a bitmap
Color Management Color Profile Bitmap Write
Replaces the embedded color profile of an image with a new one.
Сode Snippet
using (var bitmap = new Bitmap("Chicago.jpg"))
{
bitmap.ColorProfile = ColorProfile.FromSrgb();
bitmap.Save("SetEmbeddedProfile.jpg");
}
Input
Chicago.jpg
Output
SetEmbeddedProfile.jpg
For AI-assisted development: Download Graphics Mill Code Samples XML Catalog