This project has moved. For the latest updates, please go here.

How is linearize RGB implemented with Magick.Net

Dec 9, 2013 at 6:20 PM
convert 00001.tif -colorspace RGB -resample 72x72 -colorspace sRGB linearizeresample.jpg

How can this be implemented with Magick.Net
using (MagickImage image = new MagickImage(path))
        {
           // Linearize to RGB

           // Resample
            image.Resample(72, 72);

          // Back to sRGB
        }
Coordinator
Dec 9, 2013 at 7:57 PM
You are looking for the ColorSpace property of MagickImage
image.ColorSpace = ColorSpace.RGB;
// Resample
image.ColorSpace = ColorSpace.sRGB;
Dec 10, 2013 at 5:11 PM
Thank you.