文件名称:intro
介绍说明--下载内容均来自于网络,请自行研究使用
#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++
}
}
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SPT7590-297X594 1-80.jpg
SPT7590-297X594 2-3.jpg
SPT7590-297X594 16-17.jpg
16-17.txt