public int[] GetPixels() { return(( from x in Enumerable.Range(0, Bitmap.Width) from y in Enumerable.Range(0, Bitmap.Height) select ColorHelper.ToIntRgb24(Bitmap.GetPixel(x, y)) ).ToArray()); }
public int GetPixel(int x, int y) { return(ColorHelper.ToIntRgb24(Bitmap.GetPixel(x, y))); }