I've got a function which operates on pixels. I want to create one list with RGB values, but when I declare it this way:
List<int[]> maskPixels = new List<int[3]>();
It gives me error:
Array size cannot be specified in a variable declaration (try initializing with a 'new' expression)
Adding pixels is done like this: maskPixels.Add(new int[] { Red, Green, Blue });
Is there a way to do this, or I have to use new List<int[]>();
instead?