So, yeah - this Demo is not dependent on vbRichClient for a change ;), but on a System-lib instead (wiaaut.dll),
which comes pre-installed on newer systems.
The Demo-Code contains two Classes:
cPngCache (showing how to read Pngs per WIA, copying Alpha-Channel-ByteArray-content - premultiplying it - converting it into a 32bpp-VB-StdPicture)
cButton (makes use of the Class above, then dealing appropriately with Multi-State PNG-content ... ButtonNormal, ButtonPressed, Hovered, etc.)
Well, not much more to say, the Demo is small and the classes do not contain much code ... here's a screenshot:
![]()
And here the Download-Link: http://vbRichClient.com/Downloads/PngAlphaRendering.zip (~200KB, containing a few Image-Resources)
Olaf
which comes pre-installed on newer systems.
The Demo-Code contains two Classes:
cPngCache (showing how to read Pngs per WIA, copying Alpha-Channel-ByteArray-content - premultiplying it - converting it into a 32bpp-VB-StdPicture)
cButton (makes use of the Class above, then dealing appropriately with Multi-State PNG-content ... ButtonNormal, ButtonPressed, Hovered, etc.)
Well, not much more to say, the Demo is small and the classes do not contain much code ... here's a screenshot:

And here the Download-Link: http://vbRichClient.com/Downloads/PngAlphaRendering.zip (~200KB, containing a few Image-Resources)
Olaf