RGB values from image into a one dimension array in c#
- by velocityxyz
I was wondering if there is a was a way to read rgb values from an image into a one dimensional array in C#. If it doesnt make sense, in java I would do something like this.
int[] pixels;
BufferedImage image = getClass().getResourceAsStream("asdfghjkl.png");
int w = image.getWidth();
int h = image.getHeight();
pixels = new int[w * h];…