Display PNG image with transparent background color using Gdiplus

  • Thread starter Thread starter sgrm123
  • Start date Start date
S

sgrm123

Guest
I have png in Gdiplus::image. I can render image using below code.

Gdiplus::Graphics graphics(dc);
graphics.DrawImage(m_pBitmap, 0, 0);


Now how to draw png with a transparent color so all pixels of a certain color (for example: RGB(255,255,255)) show transparently and you can see the background where the transparent pixels are using Gdiplus.

Can I get any sample code?

Continue reading...
 
Back
Top