Ejemplo n.º 1
0
        /// <summary>
        /// Get the depth of the alpha channel of the image.
        /// </summary>
        /// <returns>The depth of the alpha channel in bits</returns>
        public int GetAlphaDepth()
        {
            // TODO: Improve this function so that it checks that actual data (will probably need to add the region to check as parameter)
            int alphaDepth = Format.AlphaSizeInBits();

            if (OriginalAlphaDepth == -1)
            {
                return(alphaDepth);
            }

            return(Math.Min(alphaDepth, OriginalAlphaDepth));
        }