AJH.CMS.WEB.UI.Utilities.CMSUpload.GetEncoderInfo C# (CSharp) Method

GetEncoderInfo() private static method

private static GetEncoderInfo ( String mimeType ) : System.Drawing.Imaging.ImageCodecInfo
mimeType String
return System.Drawing.Imaging.ImageCodecInfo
        private static ImageCodecInfo GetEncoderInfo(String mimeType)
        {
            ImageCodecInfo[] encoders;
            encoders = ImageCodecInfo.GetImageEncoders();
            for (int j = 0; j < encoders.Length; ++j)
            {
                if (encoders[j].MimeType == mimeType)
                    return encoders[j];
            }
            return null;
        }
        #endregion