Created
June 11, 2009 16:45
-
-
Save cprieto/128045 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static ImageCodecInfo GetEncoder(ImageFormat format) | |
{ | |
var codecs = ImageCodecInfo.GetImageEncoders(); | |
foreach (var codec in codecs) { | |
if (codec.FormatID == format.Guid) { | |
return codec; | |
} | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment