ActiveTextureManagement.TextureConverter.texHasAlpha C# (CSharp) Method

texHasAlpha() private static method

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