Results 1 to 1 of 1

Thread: VB6 Png-Alpha-Rendering with GDI+ (alternatively per WIA)

  1. #1

    Thread Starter
    Join Date
    Jun 2013

    VB6 Png-Alpha-Rendering with GDI+ (alternatively per WIA)

    So, yeah - this Demo is not dependent on vbRichClient for a change , but on a System-lib instead,
    which comes pre-installed on newer systems.

    The Demo-Code contains two Classes:
    cPngCache (showing how to read Pngs per GDI+ (alternatively per WIA), copying premultiplied Alpha-Channel-content - and converting (caching) 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:

    Edit: Changed the Demo to use GDI+ as a default now, since the WIA-libs are not on each and every XP-system (though GDI+ usually is).
    The older WIA-class is still contained in the *.vbp though.

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

    Last edited by Schmidt; Sep 26th, 2013 at 05:05 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


Click Here to Expand Forum to Full Width