.. include:: ../substitutions

.. oe:namespace:: OEDepict

.. meta::
   :keywords: OEIsRegisteredImageFile

.. _OEDepict_OEIsRegisteredImageFile:


.. oe:function:: OEIsRegisteredImageFile


   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OEIsRegisteredImageFile(const std::string& ext)

   .. oe:language:: python

      .. oe:api:: python

         OEIsRegisteredImageFile(ext: str) -> bool

   Returns whether or not an image file format is registered (*i.e.*
   supported) with the given extension. The following snippet of code
   demonstrates how to check whether a file name is a supported file
   format.

   .. oe:source:: OEIsRegisteredImageFile.py
      :language: python
      :noindent:
      :frag:     SNIPPET-OEIsRegisteredImageFile

   .. oe:source:: OEIsRegisteredImageFile.cpp
      :language: c++
      :noindent:
      :frag:     SNIPPET-OEIsRegisteredImageFile

   .. oe:source:: OEIsRegisteredImageFile.java
      :language: java
      :noindent:
      :frag:     SNIPPET-OEIsRegisteredImageFile

   .. oe:source:: OEIsRegisteredImageFile.cs
      :language: csharp
      :noindent:
      :frag:     SNIPPET-OEIsRegisteredImageFile
