Is it possible to convert an image from the Grayscale color space into a RGB using Magick.NET?
If it is, what has to be done? I've tried something like this:
image.Format = MagickFormat.Png;
image.ColorSpace = ImageMagick.ColorSpace.sRGB;
When setting values for Format and ColorSpace respectively everything persist in memory, but once Write method is called it all gets reverted to its original values.
I'm wondering if it is needed to perform any transformation or something along these lines, as for example when converting CMYK to RGB one has to do something like this:
image.TransformColorSpace(ImageMagick.ColorProfile.USWebCoatedSWOP, ImageMagick.ColorProfile.SRGB);
It looks to me I'm missing something obvious, but it's hard to find much out there about this subject.