Accord.Imaging.QuadrilateralFinder.CheckPixelFormat C# (CSharp) Method

CheckPixelFormat() private static method

private static CheckPixelFormat ( PixelFormat format ) : void
format PixelFormat
return void
        private static void CheckPixelFormat(PixelFormat format)
        {
            // check image format
            if ((format != PixelFormat.Format8bppIndexed) &&
                (format != PixelFormat.Format24bppRgb) &&
                (format != PixelFormat.Format32bppArgb) &&
                (format != PixelFormat.Format32bppPArgb))
            {
                throw new UnsupportedImageFormatException("Unsupported pixel format of the source image.");
            }
        }
    }