Since 6.5.2 for transparency to work with TBitmapImage it's newly necessary to set BackColor := clNone

17 views
Skip to first unread message

mpri...@gmail.com

unread,
Jan 30, 2026, 6:01:12 AM (yesterday) Jan 30
to innosetup
Hello,

I'm loading transparent .bmp files to TBitmapImage with AlphaFormat := afDefined.
Since Inno Setup 6.5.2 it stopped working for custom TBitmapImages.
But it still worked for images loaded into SelectDirBitmapImage.
Obviously because it is initialized with InitializeFromStockIcon, which sets BackColor := clNone. After applying the same to my custom TBitmapImages, the transparency started working again. It wasn't necessary before 6.5.2.

Martin

Martijn Laan

unread,
Jan 30, 2026, 6:35:23 AM (yesterday) Jan 30
to innosetup
Hi,

The default BackColor of a TBitmapImage is clBtnFace (grey). This is not new. The CodeClasses.iss example script shows setting BackColor to clNone when you want transparency. This is also not new.

I do not know why before 6.5.2 your bitmaps were transparent anyway, but it might be because partially transparent bitmap images barely worked before that version, and you may have gotten lucky somehow.

In general, I recommend always following the example scripts, and being explicit when setting the properties you need, instead of depending on undocumented behavior.

Greetings,
Martijn

Op 30-1-2026 om 12:01 schreef mpri...@gmail.com:
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/5d66a408-f29b-4341-8ad8-cbf63445a17bn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages