GDI+ʵԴ(UNICODEVC++)
version: 1.0.0 2007-9-16
author: Louyu.
email: louyu@zju.edu.cn
web site: http://www.walkgis.com
Ϲ㷺ġGDI+ʵԴ롱ʹõC#ԣҷװ˿Դ
ԴҪ Form1.cs У书ܵʵʽ.NetMSDNͬ
߶ԸԴֲVCķ UNICODE ½ģҪ
1ṩһ multibyte widechar ת CWideCharString
ʵ char* WCHAR* ת磺
a) CWideCharString(char*) õ WCHAR*
b) L"char* string" õ WCHAR*
c) ڷUNICODE£CString(WCHAR*) õ char*
2ԭC#еMathShellȶתΪͨVC綨 rand_Next
3ԭC#еnewΪVCûָ
VCжnewغdeleteķӵڴй©
4һMyDrawString滻ԭе graphics.DrawString(...)
ԭC#DrawStringIJ˳÷ʽ
_MakeA_RGB
5Ϊ Image::Save ҪļôڣʾпִܻᷴSave
ṩ MyImageSave жļǷڣɾȻ Save.
6Ϊܱԭķ CWalkLtDemo.cpp OnDraw(...) ṩһ
void DoGdiplusDemo(...)
úʾдҪĻͼGraphicsʵ
7˵鿴ˡGDI+ʾ͡ǰʾԴ롱˵
ڹӦť
8VC6VC++.NETнȫIJԡ
עĿ¼ṹΪ
../WalkLt Ŀ¼
ReadMe.txt ļ
../WalkLt/Bin ִгĿ¼
../WalkLt/Bin/gidplus_demo_data ʾ
../WalkLt/Include Gdiplus*.hͷļĿ¼
../WalkLt/Lib Gdiplus.libĿ¼
../WalkLt/WalkLtDemo vcԴĿ¼
WalkLtDemo.dsw vc6 (Workspace)
WalkLtDemo.sln vc++.net
../WalkLt/WalkLtDemo/res ԴĿ¼
˵ʹõ gdiplus*.h ж Color Point ֱΪ
GdiPlusColor PointI
ΪMSDNе Color Point һ£WalkLtDemoHelp.hʹ typedef:
typedef GdiPlusColor Color;
typedef PointI Point;
Ŀ¼ṹCWalkLtDemoApp::InitInstance()ͼļĿ¼
ãSetCurrentDirectory()ı˱Ŀ¼ṹʹ߿ĸú