本文整理汇总了C++中Draw::BresenhamCircleDraw方法的典型用法代码示例。如果您正苦于以下问题:C++ Draw::BresenhamCircleDraw方法的具体用法?C++ Draw::BresenhamCircleDraw怎么用?C++ Draw::BresenhamCircleDraw使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Draw
的用法示例。
在下文中一共展示了Draw::BresenhamCircleDraw方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnControlPrint
void CMainFrame::OnControlPrint(WPARAM wParam, LPARAM lParam)
{
struct tInfo{
CPoint sPoint;
CPoint ePoint;
int color;
};
//接收成功
if(wParam == 1){
tInfo *nMessage = (tInfo *)lParam;
Draw draw;
switch(input.GetCase())
{
case 1: draw.DDALineDraw(nMessage->sPoint, nMessage->ePoint, nMessage->color, this); break;
case 2: draw.MiddlePointLineDraw(nMessage->sPoint, nMessage->ePoint, nMessage->color, this); break;
case 3: draw.BresenhamLineDraw(nMessage->sPoint, nMessage->ePoint, nMessage->color, this); break;
case 4: draw.MiddleCircleDraw(nMessage->sPoint, nMessage->ePoint.x, nMessage->color, this); break;
case 5: draw.BresenhamCircleDraw(nMessage->sPoint, nMessage->ePoint.x, nMessage->color, this); break;
case 6: draw.MiddleEllipseDraw(nMessage->sPoint, nMessage->ePoint.x, nMessage->ePoint.y, nMessage->color, this); break;
default: break;
}
}else{
this->MessageBox("接收失败");
}
}