title: How to get the image format from Clipboard class?
body: <p>I'm making a image viewer in C#. that feature is copy and paste function using Clipboard class on C#.</p>
  
  <p>And I succeeded to get image of BitmapSource. but it can not check image formats (jpeg, png, bmp).</p>
  
  <p>This is supported source from C#
  <code>BitmapSource source = Clipboard.GetImage();</code></p>
  
  <p>These are what i want to use.
  <code>byte[] image = Clipboard.GetImage("image/png")</code>
  <code>byte[] image = Clipboard.GetImage("image/bmp")</code></p>
  
  <p>I will say, How do I check image format from BitmapSource or Clipboard?</p>