private static bool texHasAlpha(byte[] colors) { for (int i = 3; i < colors.Length; i+=4) { if (colors[i] < byte.MaxValue) { return true; } } return false; }