GdiPlus::Image

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

sgrm123

Guest
Hi,

I have loaded the jpeg resource using below code.

CGdiPlusBitmapResource m_bitmap;

m_bitmap.Load(IDB_IMAGE);

I have to apply transparency to the jpeg for that I am trying to convert jpeg to png.

To convert to png I am trying jpeg stream first.For that I am planning to use Gdiplus::Image save .

My problem is I am unable to convert CGdiPlusBitmapResource to Gdiplus::Image.Below code gives the error cannot convert argument 1 from 'CGdiPlusBitmapResource *' to 'const WCHAR *'"

Gdiplus::Image i(&m_bitmap);

How to convert CGdiPlusBitmapResource to Gdiplus::Image?

Continue reading...
 
Back
Top