Created
March 31, 2009 13:14
-
-
Save atifaziz/88180 to your computer and use it in GitHub Desktop.
Script to display flags of GDI+ image decoders
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
# Prints flags of GDI+ image decoders | |
import clr | |
clr.AddReference('System.Drawing') | |
from System.Drawing.Imaging import ImageCodecInfo | |
decoders = ImageCodecInfo.GetImageDecoders() | |
print '\n'.join( | |
['%-20s: Flags = %s' % (d.CodecName, str(d.Flags)) | |
for d in decoders]) |
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
Built-in BMP Codec : Flags = Encoder, Decoder, SupportBitmap, Builtin | |
Built-in JPEG Codec : Flags = Encoder, Decoder, SupportBitmap, Builtin | |
Built-in GIF Codec : Flags = Encoder, Decoder, SupportBitmap, Builtin | |
Built-in EMF Codec : Flags = Decoder, SupportBitmap, Builtin | |
Built-in WMF Codec : Flags = Decoder, SupportBitmap, Builtin | |
Built-in TIFF Codec : Flags = Encoder, Decoder, SupportBitmap, Builtin | |
Built-in PNG Codec : Flags = Encoder, Decoder, SupportBitmap, Builtin | |
Built-in ICO Codec : Flags = Decoder, SupportBitmap, Builtin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment