#include "stdafx.h"
#include "Graph.h"
#include "Graphics.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
const static double SIN45 = 0.70710678118654752440084436210485;
const static double PI = 3.1415926535897932384626433832795;
const static double RAD = 0.017453292519943295769236907684886; // PI / 180
const static double RADA = 57.295779513082320876798154814105; // 180 / PI
const static double cd320 = 320.0, cd260 = 260.0, cd8 = 8.0, cd3 = 3.0, cd2 = 2.0, cd02 = 0.2;
const static double dX0[] =
{
-2.5, -0.7609, -0.7647275, -0.76343,
-0.76385, -0.7637615, -0.7675, -0.765775
};
const static double dY0[] =
{
-1.7, -0.085788, -0.08779275, -0.09006,
-0.090425, -0.090351, -0.0925, -0.0877
};
const static double dAux[] =
{
0.006881667, 0.00000008, 0.000000017, 0.000002325,
0.0000005, 0.000000083, 0.000016667, 0.000000417
};
const static double dWide[] =
{
4.129, 0.000048, 0.00001, 0.001395,
0.0003, 0.00005, 0.01, 0.00025
};
static struct tagBMPINFOHEADER bmpih =
{
{ //初始化 struct tagBITMAPINFOHEADER
sizeof(struct tagBITMAPINFOHEADER), //DWORD biSize
0L, //DWORD biWidth
0L, //DWORD biHeidht
1, //WORD biPlanes
8, //WORD biBitCount
BI_RGB, //DWORD biCompression
0L, //DWORD biSizeImage
3780L, //DWORD biXPeIsPerMeter
3780L, //DWORD biYPeIsPerMeter
256L, //DWORD biClrUsed
256L //DWORD biClrImportant
},
{
//1
{0x00, 0x00, 0x00, 0x00}, {0x80, 0x00, 0x00, 0x00}, {0x00, 0x80, 0x00, 0x00}, {0x80, 0x80, 0x00, 0x00},
{0x00, 0x00, 0x80, 0x00}, {0x80, 0x00, 0x80, 0x00}, {0x2A, 0x2A, 0xA5, 0x00}, {0xA9, 0xA9, 0xA9, 0x00},
{0x80, 0x80, 0x80, 0x00}, {0xFF, 0x00, 0x00, 0x00}, {0x00, 0xFF, 0x00, 0x00}, {0xFF, 0xFF, 0x00, 0x00},
{0x00, 0x00, 0xFF, 0x00}, {0xFF, 0x00, 0xFF, 0x00}, {0x00, 0xFF, 0xFF, 0x00}, {0xFF, 0xFF, 0xFF, 0x00},
//2
{0xD7, 0xEB, 0xFA, 0x00}, {0xD4, 0xFF, 0x7F, 0x00}, {0xFF, 0xFF, 0xF0, 0x00}, {0xDC, 0xF5, 0xF5, 0x00},
{0xC4, 0xE4, 0xFF, 0x00}, {0xCD, 0xEB, 0xFF, 0x00}, {0xE2, 0x2B, 0x8A, 0x00}, {0x87, 0xB8, 0xDE, 0x00},
{0xA0, 0x9E, 0x5F, 0x00}, {0x00, 0xFF, 0x7F, 0x00}, {0x1E, 0x69, 0xD2, 0x00}, {0x50, 0x7F, 0xFF, 0x00},
{0xED, 0x95, 0x64, 0x00}, {0xDC, 0xF8, 0xFF, 0x00}, {0x3C, 0x14, 0xDC, 0x00}, {0x8B, 0x00, 0x00, 0x00},
//3
{0x8B, 0x8B, 0x00, 0x00}, {0x0B, 0x86, 0xB8, 0x00}, {0x00, 0x64, 0x00, 0x00}, {0x6B, 0xB7, 0xBD, 0x00},
{0x8B, 0x00, 0x8B, 0x00}, {0x2F, 0x6B, 0x55, 0x00}, {0x00, 0x8C, 0xFF, 0x00}, {0xCC, 0x32, 0x99, 0x00},
{0x00, 0x00, 0x8B, 0x00}, {0x7A, 0x96, 0xE9, 0x00}, {0x8F, 0xBC, 0x8F, 0x00}, {0x8B, 0x3D, 0x48, 0x00},
{0x4F, 0x4F, 0x2F, 0x00}, {0xD1, 0xCE, 0x00, 0x00}, {0xD3, 0x00, 0x94, 0x00}, {0x93, 0x14, 0xFF, 0x00},
//4
{0xFF, 0xBF, 0x00, 0x00}, {0x69, 0x69, 0x69, 0x00}, {0xFF, 0x90, 0x1E, 0x00}, {0x22, 0x22, 0xB2, 0x00},
{0xF0, 0xFA, 0xFF, 0x00}, {0x22, 0x8B, 0x22, 0x00}, {0xDC, 0xDC, 0xDC, 0x00}, {0xFF, 0xF8, 0xF8, 0x00},
{0x00, 0xD7, 0xFF, 0x00}, {0x20, 0xA5, 0xDA, 0x00}, {0x2F, 0xFF, 0xAD, 0x00}, {0xF0, 0xFF, 0xF0, 0x00},
{0xB4, 0x69, 0xFF, 0x00}, {0x5C, 0x5C, 0xCD, 0x00}, {0x82, 0x00, 0x4B, 0x00}, {0xF0, 0xFF, 0xFF, 0x00},
//5
{0x8C, 0xE6, 0xF0, 0x00}, {0xFA, 0xE6, 0xE6, 0x00}, {0xF5, 0xF0, 0xFF, 0x00}, {0xCD, 0xFA, 0xFF, 0x00},
{0xE6, 0xD8, 0xAD, 0x00}, {0x80, 0x80, 0xF0, 0x00}, {0xFF, 0xFF, 0xE0, 0x00}, {0xD2, 0xFA, 0xFA, 0x00},
{0x90, 0xEE, 0x90, 0x00}, {0xD3, 0xD3, 0xD3, 0x00}, {0xC1, 0xB6, 0xFF, 0x00}, {0x7A, 0xA0, 0xFF, 0x00},
{0xAA, 0xB2, 0x20, 0x00}, {0xFA, 0xCE, 0x87, 0x00}, {0x99, 0x88, 0x77, 0x00}, {0xDE, 0xC4, 0xB0, 0x00},
//6
{0xE0, 0xFF, 0xFF, 0x00}, {0x32, 0xCD, 0x32, 0x00}, {0xE6, 0xF0, 0xFA, 0x00}, {0x00, 0x00, 0x80, 0x00},
{0xAA, 0xCD, 0x66, 0x00}, {0xCD, 0x00, 0x00, 0x00}, {0xD3, 0x55, 0xBA, 0x00}, {0xDB, 0x70, 0x93, 0x00},
{0x71, 0xB3, 0x3C, 0x00}, {0xEE, 0x68, 0x7B, 0x00}, {0x9A, 0xFA, 0x00, 0x00}, {0xCC, 0xD1, 0x48, 0x00},
{0x85, 0x15, 0xC7, 0x00}, {0x70, 0x19, 0x19, 0x00}, {0xFA, 0xFF, 0xF5, 0x00}, {0xE1, 0xE4, 0xFF, 0x00},
//7
{0xE1, 0xE4, 0xFF, 0x00}, {0xAD, 0xDE, 0xFF, 0x00}, {0xE6, 0xF5, 0xFD, 0x00}, {0x00, 0x80, 0x80, 0x00},
{0x23, 0x8E, 0x6B, 0x00}, {0x00, 0xA5, 0xFF, 0x00}, {0x00, 0x45, 0xFF, 0x00}, {0xD6, 0x70, 0xDA, 0x00},
{0xAA, 0xE8, 0xEE, 0x00}, {0x98, 0xFB, 0x98, 0x00}, {0xEE, 0xEE, 0xAF, 0x00}, {0x93, 0x70, 0xDB, 0x00},
{0xD5, 0xEF, 0xFF, 0x00}, {0xB9, 0xDA, 0xFF, 0x00}, {0x3F, 0x85, 0xCD, 0x00}, {0xCB, 0xC0, 0xFF, 0x00},
//8
{0xDD, 0xA0, 0xDD, 0x00}, {0xE6, 0xE0, 0xB0, 0x00}, {0x80, 0x00, 0x80, 0x00}, {0x8F, 0x8F, 0xBC, 0x00},
{0xE1, 0x69, 0x41, 0x00}, {0x13, 0x54, 0x8B, 0x00}, {0x72, 0x80, 0xFA, 0x00}, {0x60, 0xA4, 0xF4, 0x00},
{0x57, 0x8B, 0x2E, 0x00}, {0xEE, 0xF5, 0xFF, 0x00}, {0x2D, 0x52, 0xA0, 0x00}, {0xC0, 0xC0, 0xC0, 0x00},
{0xEB, 0xCE, 0x87, 0x00}, {0xCD, 0x5A, 0x6A, 0x00}, {0x90, 0x80, 0x70, 0x00}, {0xFA, 0xFA, 0xFF, 0x00},
//9
{0x7F, 0xFF, 0x00, 0x00}, {0xB4, 0x82, 0x46, 0x00}, {0x8C, 0xB4, 0xD2, 0x00}, {0x80, 0x80, 0x00, 0x00},
{0xD8, 0xBF, 0xD8, 0x00}, {0x47, 0x63, 0xFF, 0x00}, {0xD0, 0xE0, 0x40, 0x00}, {0xEE, 0x82, 0xEE, 0x00},
{0xB3, 0xDE, 0xF5, 0x00}, {0xF5, 0xF5, 0xF5, 0x00}, {0x00, 0xFF, 0xFF, 0x00}, {0x32, 0xCD, 0x9A, 0x00},
{0xA8, 0xA8, 0xE4, 0x00}, {0xBC, 0xBC, 0xE8, 0x00}, {0xD0, 0xD0, 0xEC, 0x00}, {0xE4, 0xE4, 0xF4, 0x00},
//10
{0x78, 0x7C, 0x7C, 0x00}, {0x80, 0x84, 0x84, 0x00}, {0x84, 0x8C, 0x8C, 0x00}, {0x8C, 0x98, 0x98, 0x00},
{0x90, 0xA0, 0xA0, 0x00}, {0x94, 0xA8, 0xA8, 0x00}, {0x9C, 0xB0, 0xB0, 0x00}, {0xA0, 0xBC, 0xBC, 0x00},
{0xA4, 0xC4, 0xC4, 0x00}, {0xA8, 0xCC, 0xCC, 0x00}, {0xAC, 0xD8, 0xD8, 0x00}, {0xB0, 0xE0, 0xE0, 0x00},
{0xB0, 0xE8, 0xE8, 0x00}, {0xB4, 0xF0, 0xF0, 0x00}, {0xB4, 0xF4, 0xF4, 0x00}, {0xB8, 0xF8, 0xF8, 0x00},
//11
{0x00, 0x7C, 0x04, 0x00}, {0x04, 0x84, 0x0C, 0x00}, {0x0C, 0x88, 0x14, 0x00}, {0x18, 0x90, 0x1C, 0x00},
{0x24, 0x98, 0x28, 0x00}, {0x30, 0xA0, 0x34, 0x00}, {0x3C, 0xA8, 0x40, 0x00}, {0x4C, 0xB0, 0x4C, 0x00},
{0x58, 0xB8, 0x5C, 0x00}, {0x68, 0xC0, 0x6C, 0x00}, {0x7C, 0xC8, 0x7C, 0x00}, {0x8C, 0xD0, 0x8C, 0x00},
{0xA0, 0xD8, 0xA0, 0x00}, {0xB4, 0xE0, 0xB4, 0x00}, {0xC8, 0xE8, 0xC8, 0x00}, {0xE0, 0xF0, 0xE0, 0x00},
//12
{0x98, 0x00, 0x98, 0x00}, {0xA0, 0x08, 0xA0, 0x00}, {0xA8, 0x10, 0xA8, 0x00}, {0xAC, 0x1C, 0xAC, 0x00},
{0xB0, 0x28, 0xB0, 0x00}, {0xB8, 0x34, 0xB8, 0x00}, {0xBC, 0x44, 0xBC, 0x00}, {0xC4, 0x54, 0xC4, 0x00},
{0xC8, 0x64, 0xC8, 0x00}, {0xD0, 0x74, 0xD0, 0x00}, {0xD4, 0x84, 0xD4, 0x00}, {0xD8, 0x94, 0xD0, 0x00},
{0x64, 0x64, 0xD0, 0x00}, {0x74, 0x74, 0xD4, 0x00}, {0x84, 0x84, 0xD8, 0x00}, {0x98, 0x98, 0xE0, 0x00},
//13
{0x00, 0x50, 0x8C, 0x00}, {0x00, 0x58, 0x94, 0x00}, {0x00, 0x64, 0xA0, 0x00}, {0x00, 0x70, 0xAC, 0x00},
{0x00, 0x7C, 0xB8, 0x00}, {0x00, 0x84, 0xC0, 0x00}, {0x00, 0x90, 0xCC, 0x00}, {0x00, 0x9C, 0xD8, 0x00},
{0x00, 0xA8, 0xE4, 0x00}, {0x00, 0xB0, 0xEC, 0x00}, {0x00, 0xBC, 0xF8, 0x00}, {0x08, 0xC8, 0xFC, 0x00},
{0x14, 0xD4, 0xFC, 0x00}, {0x1C, 0xDC, 0xFC, 0x00}, {0x28, 0xE8, 0xFC, 0x00}, {0x34, 0xF4, 0xFC, 0x00},
//14
{0x8C, 0x50, 0x00, 0x00}, {0x94, 0x58, 0x00, 0x00}, {0xA0, 0x64, 0x00, 0x00}, {0xAC, 0x70, 0x00, 0x00},
{0xB8, 0x7C, 0x00, 0x00}, {0xC0, 0x84, 0x00, 0x00}, {0xCC, 0x90, 0x00, 0x00}, {0xD8, 0x9C, 0x00, 0x00},
{0xE4, 0xA8, 0x00, 0x00}, {0xEC, 0xB0, 0x00, 0x00}, {0xF8, 0xBC, 0x00, 0x00}, {0xF8, 0x00, 0xBC, 0x00},
{0xFC, 0xD4, 0x14, 0x00}, {0xFC, 0xE0, 0x20, 0x00}, {0xFC, 0xE8, 0x28, 0x00}, {0xFC, 0xF4, 0x34, 0x00},
//15
{0x00, 0x50, 0xD0, 0x00}, {0x00, 0x58, 0xD8, 0x00}, {0x00, 0x64, 0xE4, 0x00}, {0x00, 0x70, 0xF0, 0x00},
{0x00, 0x7C, 0xFC, 0x00}, {0x04, 0x84, 0xFC, 0x00}, {0x10, 0x90, 0xFC, 0x00}, {0x1C, 0x9C, 0xFC, 0x00},
{0x28, 0xA8, 0xFC, 0x00}, {0x30, 0xB0, 0xFC, 0x00}, {0x3C, 0xBC, 0xFC, 0x00}, {0x48, 0xC8, 0xFC, 0x00},
{0x54, 0xD4, 0xFC, 0x00}, {0x5C, 0xDC, 0xFC, 0x00}, {0x68, 0xE8, 0xFC, 0x00}, {0x74, 0xF4, 0xFC, 0x00},
//16
{0
- 1
- 2
- 3
- 4
- 5
- 6
前往页