Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Adding installed Image Color Profiles (.icm) into an image in C#

$
0
0
Thank you for the reply.
I did the same but when I load the image in another test application using the same code and tried to get the profile it returned null. Following is the code of the test application
            try
            {
                using (MagickImage image = new MagickImage(openFileDialog1.FileName))
                {
                    ColorProfile profile = image.GetColorProfile();
                    if (profile != null)
                    {
                        MessageBox.Show(profile.Name);
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message);
            }

Viewing all articles
Browse latest Browse all 3693

Trending Articles