This question is related to: How to convert Bitmap to byte[,,] faster?
I have byte[] which has:
[r0, g0, b0, r1, g1, b1 … ]
(r0 is the r-value of zeroth pixel and so on)
How can I copy this quickly into byte[,,]?
Or maybe I can get byte[,,] ditectly from BitmapData?
This question is related to: How to convert Bitmap to byte[,,] faster? I have
Share
Based on Martinho’s answer but perhaps a bit faster(don’t have time for benchmarking now):