QuickFont.JBitmap.GetPixFormat C# (CSharp) Method

GetPixFormat() private static method

Gets the corresponding C# pixel format
private static GetPixFormat ( JBitmapPixelFormat format ) : System.Drawing.Imaging.PixelFormat
format JBitmapPixelFormat
return System.Drawing.Imaging.PixelFormat
        private static System.Drawing.Imaging.PixelFormat GetPixFormat(JBitmapPixelFormat format) {
            switch (format){

                case JBitmapPixelFormat.Format8bpp:
                    return System.Drawing.Imaging.PixelFormat.Format8bppIndexed;
                
                case JBitmapPixelFormat.Format24bppBGR:
                    return System.Drawing.Imaging.PixelFormat.Format24bppRgb;

                case JBitmapPixelFormat.Format32bppBGRA:
                    return System.Drawing.Imaging.PixelFormat.Format32bppArgb;

                default:
                    return System.Drawing.Imaging.PixelFormat.Format8bppIndexed;
            }



        }