Code: Select all
using (MagickImage m = new MagickImage(bmp))
{
m.Format = MagickFormat.Jp2;
m.Settings.SetDefine(MagickFormat.Jp2, "quality", "80");
m.Write(jpeg2000FullPath);
}
I've searched the forum; here are some relevant topics I've found:
This user seems to have had success creating grayscale JPEG-2000 files. Attempting to call equivalent commands in Magick .NET doesn't work for me.
This user seems to have created grayscale JPEG-2000 files. (No details provided.)
This user wanted to create 16-bit grayscale files. (Unresolved.)