How to convert 1D byte array to 2D byte array which holds a bitmap?
问题 I have already used the LockBits and UnlockBits functions and takes the byte array of a Image into a 1D array. (considering only the black and white/binarized images) Is there any way of taking it to a 2D array (of the size image height and width)? so i can wirte the array into a ".txt" file and view it? The code i have used to take the image into 1D array is as below: Public void function(Bitmap image){ { byte[] arr1D; byte[] arr2D; BitmapData data = image.LockBits(new Rectangle(0, 0, img_w,