View Issue Details

IDProjectCategoryView StatusLast Update
0011757LazarusLCLpublic2020-03-31 13:57
Reporterjoshas Assigned ToMarc Weustink  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionsuspended 
Product Version0.9.25 (SVN) 
Summary0011757: No PNG transparency in runtime
DescriptionTransparent PNG images in compiled application are rendered without transparency on various components, except TImage. Images are shown correctly in form designer.
Additional InformationTested on latest daily snapshot "Lazarus-0.9.25-fpc-2.2.3-20080726-win32", SVN revision 15862, under Windows XP x86.
Tagstransparent
Fixed in Revision
LazTarget-
WidgetsetWin32/Win64
Attached Files

Relationships

related to 0011434 closedMarc Weustink PNG images with transparency are not rendered correctly on buttons 
related to 0017975 resolvedJuha Manninen TPageControl / TTabControl / TExtendedNoteBook Tabpositions not shown correctly 
related to 0024241 new TBitBtn do not display bitmap correctly 

Activities

2008-07-26 18:43

 

png_transparency.png (14,447 bytes)   
png_transparency.png (14,447 bytes)   

Vincent Snijders

2008-08-08 11:55

manager   ~0021142

Can you upload an example application?

2008-08-09 14:44

 

png_transparency.zip (38,321 bytes)

joshas

2008-08-09 14:48

reporter   ~0021175

Added simple project. Also, I've noted, that PNG images are drawn correctly (with transparency) when they are in selection, e.g. hover on SpeedButton or in Menu. Tested with 15965 SVN revision.

2008-08-09 14:49

 

transparency_2.png (27,369 bytes)   
transparency_2.png (27,369 bytes)   

Paul Ishenin

2008-08-09 19:51

manager   ~0021184

if you add a manifest to your project - you will see correct bitmaps in xp and vista. I suppose you have this problem because images have low alpha values in invisible part, but I have not really checked.

joshas

2008-08-09 20:37

reporter   ~0021185

After adding manifest all images are rendered correctly, with transparency.

Marc Weustink

2008-08-20 01:32

administrator   ~0021503

I've suspended this issue, since this is how windows works.
Without manifest, windows doesn't support alpha images in an imagelist. Alphavalues < 50% will be masked in that case.
I keep this issue open to rethink if there is a solution for this in the future

Zeljan Rikalo

2012-02-04 12:17

developer   ~0056345

Added target till Marc decides what to do.

Mike Thompson

2014-09-16 23:43

developer   ~0077321

Ran test project under Windows 7 with Lazarus 1.3/win32/SVN 45863 (and confirmed project doesn't have a manifest before testing)

PNGs on the form are now correctly rendered in the TBitBtn, TSpeedButton nd TMainMenu.

However reported issue still exists for TPageControl (I needed to set ImageIndex for each tabsheet first)

Issue History

Date Modified Username Field Change
2008-07-26 18:43 joshas New Issue
2008-07-26 18:43 joshas File Added: png_transparency.png
2008-07-26 18:43 joshas Widgetset => Win32
2008-08-08 11:55 Vincent Snijders LazTarget => 0.9.26
2008-08-08 11:55 Vincent Snijders Note Added: 0021142
2008-08-08 11:55 Vincent Snijders Status new => feedback
2008-08-08 11:55 Vincent Snijders Target Version => 0.9.26
2008-08-09 14:44 joshas File Added: png_transparency.zip
2008-08-09 14:48 joshas Note Added: 0021175
2008-08-09 14:49 joshas File Added: transparency_2.png
2008-08-09 19:51 Paul Ishenin Note Added: 0021184
2008-08-09 20:37 joshas Note Added: 0021185
2008-08-10 19:19 Paul Ishenin Relationship added related to 0011434
2008-08-12 09:50 Vincent Snijders Assigned To => Marc Weustink
2008-08-12 09:50 Vincent Snijders Status feedback => assigned
2008-08-19 00:47 Marc Weustink Severity major => minor
2008-08-20 01:32 Marc Weustink LazTarget 0.9.26 => -
2008-08-20 01:32 Marc Weustink Note Added: 0021503
2008-08-20 01:32 Marc Weustink Resolution open => suspended
2008-08-20 01:32 Marc Weustink Target Version 0.9.26 =>
2012-02-04 12:17 Zeljan Rikalo LazTarget - => post 1.2
2012-02-04 12:17 Zeljan Rikalo Note Added: 0056345
2013-09-03 12:07 Martin Friebe LazTarget post 1.2 => 1.4
2014-09-16 23:43 Mike Thompson Note Added: 0077321
2014-09-29 15:51 Juha Manninen Relationship added related to 0017975
2015-04-27 21:59 Juha Manninen LazTarget 1.4 => -
2020-03-31 10:55 Juha Manninen Relationship added related to 0024241
2020-03-31 13:57 Juha Manninen Tag Attached: transparent