Jeff 96bf40c7a1 转储到git上。 5 years ago
..
Bin 96bf40c7a1 转储到git上。 5 years ago
Lib 96bf40c7a1 转储到git上。 5 years ago
WalkLtDemo 96bf40c7a1 转储到git上。 5 years ago
include 96bf40c7a1 转储到git上。 5 years ago
ReadMe.txt 96bf40c7a1 转储到git上。 5 years ago

ReadMe.txt


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()ı˱Ŀ¼ṹʹ߿޸ĸú