title: Check if clipboard contains image or a file that is an image
body: <p>I would like to check if the clipboard contains an image, or a file which is in an image format. I want to do it something like this:</p>
  
  <pre><code>    private void myMethod()
      {
          //Check if the clipboard contains an image or a file, that is in image format.
          if (IsClipboardImage())
          {
              //Do important code
          }
          else
          {
              //Do nothing
          }
      }
      private bool IsClipboardImage()
      {
          if (Clipboard.ContainsImage())
              return true;
          else if ( /* code to check if is an image file? */ )
              return true;
          else
              return false;
      }
  </code></pre>
  
  <p>I have been told to use IDataObject, but using that - how would I check if it's a file that is an image?</p>
  
  <p>My code works if you <code>right click &gt; copy</code> an image from the web, but if it's from my documents, it doesn't work. Any help would be appreciated</p>
  
  <p>Thanks</p>