文件名称:intro
-
所属分类:
- 标签属性:
- 上传时间:2014-10-16
-
文件大小:1.31mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
#include <iostream>
#include math.h
#define TRUE 1
using namespace std
class DDA
{
public:
void DDALine(int x0,int y0,int x1,int y1,COLORREF color, CDC
*pDC)
{
float dx, dy, length, x, y
if(abs(x1-x0) >= abs(y1-y0))
length = abs(x1-x0)
else
length = abs(y1-y0)
dx = (x1-x0)/length
dy = (y1-y0)/length
int i = 1
x = x0
y = y0
while(i<=length)
{
pDC->SetPixel((int)(x+0.5),(int)(y+0.5),color)
x = x + dx
y = y + dy
i++
}
}
}
-#include <iostream>
#include math.h
#define TRUE 1
using namespace std
class DDA
{
public:
void DDALine(int x0,int y0,int x1,int y1,COLORREF color, CDC
*pDC)
{
float dx, dy, length, x, y
if(abs(x1-x0) >= abs(y1-y0))
length = abs(x1-x0)
else
length = abs(y1-y0)
dx = (x1-x0)/length
dy = (y1-y0)/length
int i = 1
x = x0
y = y0
while(i<=length)
{
pDC->SetPixel((int)(x+0.5),(int)(y+0.5),color)
x = x+ dx
y = y+ dy
i++
}
}
}
#include math.h
#define TRUE 1
using namespace std
class DDA
{
public:
void DDALine(int x0,int y0,int x1,int y1,COLORREF color, CDC
*pDC)
{
float dx, dy, length, x, y
if(abs(x1-x0) >= abs(y1-y0))
length = abs(x1-x0)
else
length = abs(y1-y0)
dx = (x1-x0)/length
dy = (y1-y0)/length
int i = 1
x = x0
y = y0
while(i<=length)
{
pDC->SetPixel((int)(x+0.5),(int)(y+0.5),color)
x = x + dx
y = y + dy
i++
}
}
}
-#include <iostream>
#include math.h
#define TRUE 1
using namespace std
class DDA
{
public:
void DDALine(int x0,int y0,int x1,int y1,COLORREF color, CDC
*pDC)
{
float dx, dy, length, x, y
if(abs(x1-x0) >= abs(y1-y0))
length = abs(x1-x0)
else
length = abs(y1-y0)
dx = (x1-x0)/length
dy = (y1-y0)/length
int i = 1
x = x0
y = y0
while(i<=length)
{
pDC->SetPixel((int)(x+0.5),(int)(y+0.5),color)
x = x+ dx
y = y+ dy
i++
}
}
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.