title: Refresh Bitmap Firemonkey
body: <p>I use Delphi 10.2 Tokyo, and I have a <code>TForm</code> with a <code>TImage</code>.</p>
  
  <p>I load a <code>PNG</code> file to <code>MultiResBitmap</code> property and set <code>WrapMode</code> to <code>Fit</code>.</p>
  
  <p>When I run my application and click on a button, I need to change this picture and load a <code>JPG</code> file.</p>
  
  <p>I use <code>Image.Bitmap.LoadFromFile</code> if the file is on the harddrive or <code>Image.Bitmap.LoadFromStream</code> if the JPG file is from a WebService (Get from IdHTTP). Both are on a <code>Try...Finally</code> with <code>Image.BeginUpdate</code> and <code>Image.EndUpdate;</code></p>
  
  <p>That's ok I see my new picture but the bottom isn't really good, I see a part of the previous picture. I need to move the TForm outside of my screen to see it full.</p>
  
  <p>I try <code>Image.Repaint</code> at the end or to Clear the <code>Bitmap</code> before load the new file with <code>Image.Bitmap.Clear(TAlphaColors.White)</code> but that's change nothing.</p>
  
  <p>Somebody know why ?</p>
  
  <p><strong>Edit:</strong> I forgot to say that TransparentColor is set on White. </p>
  
  <ul>
  <li>First: </li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/AZ1gs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AZ1gs.png" alt="enter image description here"></a> </p>
  
  <ul>
  <li>Second:  </li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/DDOln.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DDOln.png" alt="enter image description here"></a> </p>
  
  <ul>
  <li>After moving out of screen : </li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/tZ9LL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tZ9LL.png" alt="enter image description here"></a></p>