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

New Post: Do not jp2 16bit Gray Scale conversion.

$
0
0
       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.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>