BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / cpp / #5674同步于 2008/4/29
CPP机器人发帖

GDI+绘制bmp图的问题

zcy829212
2008/4/29镜像同步0 回复
CImage image; image.Create(600,600,24); HDC hdc=image.GetDC(); CString pathStr; CString testStr; pathStr="1.bmp"; LPCTSTR pl=pathStr; using namespace Gdiplus; Graphics g(hdc); Point points[3]; points[0].X=100; points[0].Y=100; points[1].X=50; points[1].Y=200; points[2].X =150; points[2].Y=200; SolidBrush bru(RGB(255,0,0)); g.FillPolygon(&bru,points,3); image.Save(pl); image.ReleaseDC(); image.Destroy(); 以上这段代码是在VC++ 2005 的MFC中view中写的,但输出的bmp中并没所要画的多边形,哪位高手有这方面的经验,指点一下,或另指一条明路。 谢谢!!!
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。