Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi all,

I've hit a problem trying to use the GDI+ function MakeTransparent. This function is listed as being a member of Bitmap in MSDN and there are plenty of examples mentioned on the web using it from .NET. However, I'm writing an ActiveX control in MFC and using GDI+ and this method is reported as not being available. The error message is:

error C2039: 'MakeTransparent' : is not a member of 'Gdiplus::Bitmap'

I've never encountered a GDI+ function not being available like this. Does anyone know what's going on?

I'm using VS 2010 on XP SP3

Many Thanks

Tom
Posted
Updated 27-May-16 20:55pm
Comments
mbue 10-Aug-11 13:07pm    
.NET has nothing common with MFC. Regards.

This seems written to answer your question ...
Using GDI+ with MFC or native C/C++[^]
 
Share this answer
 
That's correct, see the documentation[^].
 
Share this answer
 
Thanks for the responses. It seems the Bitmap class exposed in .NET is simply different to that which is exposed by GDI+.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900