摘要:
void dda(HDC hdc){ float dx,dy; int k; float x; float y; HPEN pen=NULL; pen = CreatePen(PS_SOLID,5,RGB(255,0,0)); SelectObject(hdc,pen); k=_abs(x2-x1); if(_abs(y2-y1)>k) k=_abs(y2-y1); dx=(x2-x1)/k; dy=(y2-y1)/k; x=x1; y=y1; for(int i=0;i<=k... 阅读全文