When you add the images to the imagelist don't make them transparent. Just set the transparent colour value to be clNone.
Make sure the TImage has the transparent property set to true. On Wed, Feb 24, 2010 at 12:23 PM, John Bird <johnkb...@paradise.net.nz> wrote: > I have been puzzling over how a bitmap sometimes paints for a long time, I > have a circular image (of a LED) that I want to have a transparent > surrounding to as the LED is round and the surround is square. > > In this case, I have 5 images in a Timagelist, and switch the one I want > using code like > > if imageindex=0 then imagelist1.GetBitmap(0,image1.picture.bitmap); > if imageindex=1 then imagelist1.GetBitmap(1,image1.picture.bitmap); > > In test programs it works as expected, but in the actual program there is > always a white square around the image. > > I have finally found the culprit - if XPManifest is added its seems to > interfere with the settings to do with transparency, ie if its there I get > the white border instead of it being transparent. > > Anyone come across this and have a workaround? > > D2007/Vista > > John > > > _______________________________________________ > NZ Borland Developers Group - Delphi mailing list > Post: delphi@delphi.org.nz > Admin: http://delphi.org.nz/mailman/listinfo/delphi > Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: > unsubscribe > _______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe