title: Add a png image to a imagelist in runtime using Delphi XE
body: <p>I need add in runtime a png image to a <code>TImageList</code>. I've looked at the functions implemented by the <code>TCustomImageList</code> but they only allow adding</p>
  
  <ul>
  <li>bitmaps, </li>
  <li>icons or </li>
  <li>images from another imagelist</li>
  </ul>
  
  <p>E.g.:</p>
  
  <pre><code>function Add(Image, Mask: TBitmap): Integer;
  function AddIcon(Image: TIcon): Integer;
  function AddImage(Value: TCustomImageList; Index: Integer): Integer;
  procedure AddImages(Value: TCustomImageList);
  function AddMasked(Image: TBitmap; MaskColor: TColor): Integer;
  </code></pre>
  
  <p>How I can add a PNG image to a ImageList component without converting this image to BMP?</p>
  
  <p>The IDE already can add a PNG to an ImageList at design time:</p>
  
  <p><a href="https://i.stack.imgur.com/Dg9Jw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Dg9Jw.png" alt="enter image description here"></a></p>
  
  <p>Now we need to do it at runtime.</p>