title: LoadPicture error invalid picture
body: <p>I am trying to take an image from a folder to check its width after that. To do it I am using the following peace of code:</p>
  
  <pre><code>         Dim pic As IPictureDisp
           Dim var As Variant
           var = "C:\Myfolder\Animage" &amp; animationNum + 1 &amp; ".png"
           pic = LoadPicture(var)
  </code></pre>
  
  <p>It is giving me "invalid picture" error. I tried also just using the following line:</p>
  
  <pre><code>        width = LoadPicture("C:\Myfolder\Animage" &amp; animationNum + 1 &amp; ".png").width
  </code></pre>
  
  <p>But it also gave me the same error. How can I load the picture?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I try with a jpg image and it works... Does this function some issues with png files?</p>