小甲鱼老师的哆啦A梦程序问题
代码坐标对称,为什么哆啦A梦右边的手与身体连接部位是两条线? 那是腋毛 哆啦A梦那个情况,只要跟着小甲鱼视频做的,都有这个情况出现,解决方法,把画笔改成1,左边只画一条,右边画两条(一条长一条短)。具体代码实现:把你的如下代码hOldPen = (HPEN)SelectObject(hdc, CreatePen(PS_SOLID, 2, RGB(0, 159, 232)));
MoveToEx(hdc, (cxClient / 2) - 90, (cyClient / 2) + 10, NULL);
LineTo(hdc, (cxClient / 2) - 90, (cyClient / 2) + 50);
MoveToEx(hdc, (cxClient / 2) + 90, (cyClient / 2) + 10, NULL);
LineTo(hdc, (cxClient / 2) + 90, (cyClient / 2) + 50);
替换成hOldPen = (HPEN)SelectObject(hdc, CreatePen(PS_SOLID, 1, RGB(0, 159, 232)));
MoveToEx(hdc, (cxClient / 2) - 90, (cyClient / 2) + 50, NULL);
LineTo(hdc, (cxClient / 2) - 90, (cyClient / 2) + 10);
MoveToEx(hdc, (cxClient / 2) + 90, (cyClient / 2) + 60, NULL);
LineTo(hdc, (cxClient / 2) + 90, (cyClient / 2) + 10);
MoveToEx(hdc, (cxClient / 2) + 89, (cyClient / 2) + 50, NULL);
LineTo(hdc, (cxClient / 2) + 89, (cyClient / 2) + 10); 找到答案了,我还在尝试改坐标点{:10_269:}
页:
[1]