I have the following code using Magick.NET-7.0.0.0018-Q16 (or .0017)
If I add alpha the array length will be 36 and will be: 32768, 0, 0, 0, 32768, 0, 0, 0...
Why are G and B values zero or how can I access them? Thanks!
MagickImage img_src = new MagickImage(new MagickColor(32768, 16384, 1024), 3, 3);
PixelCollection pc = img_src.GetReadOnlyPixels();
ushort[] data = pc.GetValues();
The array will have a length of 27 and will look like this: 32768, 0, 0, 32768, 0, 0, 32768, 0...If I add alpha the array length will be 36 and will be: 32768, 0, 0, 0, 32768, 0, 0, 0...
Why are G and B values zero or how can I access them? Thanks!