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

New Post: GetValues() question

$
0
0
I have the following code using Magick.NET-7.0.0.0018-Q16 (or .0017)
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!

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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