How to

get installed image encoders

Published: 20. January 2009 | Updated: 20. January 2009
License: Microsoft Public License (MS-PL)
Categories: GDI
Tags: C# GDI Winforms
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.Drawing.Imaging;

Code

ImageCodecInfo[] encoders = ImageCodecInfo.GetImageEncoders();

foreach (ImageCodecInfo info in encoders)
{
    Console.WriteLine("{0} ({1})", info.MimeType, info.FilenameExtension);
}
Send us feedback about this snippet »



Related Snippets: