Use GDI + step in VC

xiaoxiao2021-03-06  15

1 Place the include and lib folder to the program folder, set the .lib file in the settings, and include the include and lib folders in the option.

2 Putting #ifndef ulong_ptr #define ulong_ptr unsigned long * #include "gdiplus.h" Using Namespace gdiplus; #ENDIF contains to the file.

3 Start GDIPLUSSTARTUP (& m_gdiplustoken, & m_gdiplusstartupinput, null) in OnNitDialog;

4 End GDI , GDIPLUSSHUTDOWN (M_GDIPLUSTOKEN) in OnDestroy;

5 Operate the functions and methods in GDI in OnPaint () or OnDRAW (). Graphic class, etc. RESOUND UNIVERSIVIES (8);

g-> DrawImage (); etc.

转载请注明原文地址:https://www.9cbs.com/read-45812.html

New Post(0)