MagickReadSettings settings = new MagickReadSettings();
settings.ColorSpace = ColorSpace.Gray;
using (MagickImage image = new MagickImage("제목 없음-4.bmp", settings))
{
MagickImage mask = image.Clone();
mask.Depth = 16;
mask.ColorSpace = ColorSpace.Gray;
mask.ClassType=ClassType.Direct;
mask.Write("finalPlz.jp2");
}
I have tried converting the same code as above. The color space creates an image file that has still rgb channel, but the Gray Scale.I want one channel, 16-bit grayscale images.
Rather strange thing is jp2 extension, if the extension saved as png 16bit 1-channel grayscale image is created normally.
In order to solve the problem and need your help.