Since Inno Setup version 6.6.0, PNG with transparency is supported for WizardImageFile, WizardImageFileDynamicDark, WizardSmallImageFile and WizardSmallImageFileDynamicDark.
But it seems that png with transparency cannot be loaded with MyImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\on.png')); from [Code] section.
Is there a way to display an image with transparency on the wizard page?
Any help is appreciated
Use MyImage.PngImage.LoadFromFile, instead of MyImage.Bitmap.
https://jrsoftware.org/ishelp/index.php?topic=scriptclasses&anchor=TBitmapImage