Enumerating supported image formats RRS feed

  • Question

  • Hi,

    I am developing an application that needs to load bitmaps specified by the user (e.g. through a OpenFileDialog). I am wondering if it is possible to enumerate image formats supported by wpf and their extensions, so that I wouldn't have to hardcode them like this:

    _openFileDialog.Filter = "Supported Media|*.bmp;*.gif;*.ico;*.jpg;*.png;*.wdp;*.tiff"

    I imagine that custom codecs could be installed in the system which would render such a hardcoded list incomplete.


    Wednesday, October 29, 2008 7:58 PM


All replies