由于MS在最新的SDK中仍然没有提供新版本的头文件和import library库,也没有人来做这份繁杂的工作(需要自己定义头文件并编译自己的LIB库),所以在网上找了很多资料,得出的结论是需要通过调用Gdiplus Flat Api来实现。
这是网上的两篇文章中的介绍:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdicpp/GDIPlus/GDIPlusreference/flatapi.asp
http://www.ureader.com/message/1149061.aspx// create the effect of your choice
GpEffect *nativeEffect = NULL;
Status lastResult = GdipCreateEffect( BrightnessContrastEffectGuid, 
&nativeEffect );// assume you have a valid nativeEffect pointer ( always check for errors! )
// the parameters ( "C" structures ) are specific for the effect
// everything is documented in the MSDN docs
lastResult = GdipSetEffectParameters( nativeEffect, params, size );.... other gdiplus functions ( e.g., Graphics drawing, etc. )// you done with the effect, now dispose of it
GdipDeleteEffect(nativeEffect);目前可以功过LoadLibrary和GetProcAddress来取得函数的地址,但是取不知道该如何定义GpEffect类;
寻求该如何引入GpEffect类呢?
新版本的GDIPLUS。DLL在office11中已经有了。
急。