title: GetPreviewBitmapFile save preview bitmap with strange colors (SolidWorks)
body: <p>I'm developing C# VSTA macro for our manufacturing department.
  I'm using <code>SldWorks.GetPreviewBitMapFile</code> to save a bitmap preview of the selected model and show it in the picturebox as shown below:</p>
  
  <p><a href="https://i.stack.imgur.com/LX1tF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LX1tF.png" alt="enter image description here"></a></p>
  
  <p>The code looks fine and execute fine except for the strange colors:</p>
  
  <pre><code>bool status = swApp.GetPreviewBitmapFile(filepath, configuration, "D:\\preview.bmp");
              pictureBox1.ImageLocation = "D:\\Preview.bmp";
              pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
              pictureBox1.Refresh();
  </code></pre>
  
  <p>Has anyone had a similar problem and what's the remedy?</p>