• 大小: 55KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-09
  • 语言: C/C++
  • 标签:

资源简介

C语言经典程序设计(源代码)之画图软件111

资源截图

代码片段和文件信息

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

/*定义常量*/
/*向上翻页移键*/
#define PAGEUP 0x4900
/*向下翻页移键*/
#define PAGEDOWN 0x5100
/*Escape键*/
#define ESC 0x011b 
/*左移键*/
#define LEFT 0x4b00
/*右移键*/
#define RIGHT 0x4d00 
/*下移键*/
#define DOWN 0x5000 
/*上移键*/
#define UP 0x4800
/*空格键*/
#define SPACE 0x3920

#define   NO_PRESSED    0
#define   LEFT_PRESSED  1
#define   RIGHT_PRESSED 2
#define   pi            3.1415926

/*定义全局变量*/
int RxRyR;
int TOPxTOPyBOTTOMxBOTTOMy;
int CentxCenty;
int lineStartxlineStartylineEndxlineEndy;
int linePoint_x[20]linePoint_y[20];


/*这里的字模数组均由“点阵字模工具”生成,你可以用你自己需要的点阵信息来
替换示例中的字模信息,注意字模大小要一致,否则显示会出问题。*/
char zhi16K[]={
/* 以下是 ‘直‘ 的 16点阵楷体_GB2312 字模,32 byte */
  0x010x000x010x000x010xF00x1E0x00
  0x020x000x070xC00x080x400x0F0x40
  0x080x400x0F0x400x080x400x0F0x40
  0x080x400x0F0xFC0x700x000x000x00
};

char xian16K[]={
/* 以下是 ‘线‘ 的 16点阵楷体_GB2312 字模,32 byte */
  0x000x800x000x900x080x880x100x80
  0x240xF00x450x800x780xB00x110xC0
  0x2C0x880x700x500x040x600x180xA4
  0x630x140x000x0C0x000x040x000x00
};

char ju16K[]={
/* 以下是 ‘矩‘ 的 16点阵楷体_GB2312 字模,32 byte */
  0x000x000x080x000x080x780x100x80
  0x1E0x800x280xF80x480x880x0E0x88
  0xF80xF00x080x800x140x800x120x9E
  0x200xE00x400x000x000x000x000x00
};

char xing16K[]={
/* 以下是 ‘形‘ 的 16点阵楷体_GB2312 字模,32 byte */
  0x000x000x070x880x3A0x080x120x10
  0x120x200x170x480xFA0x100x120x20
  0x120xC80x120x080x220x100x420x20
  0x000x400x000x800x030x000x000x00
};

char yuan16K[]={
/* 以下是 ‘圆‘ 的 16点阵楷体_GB2312 字模,32 byte */
  0x000xF80x3F0x080x230x880x240x88
  0x270x080x210xC80x2E0x480x290x48
  0x290x480x220x880x240x480x280x08
  0x3F0xE80x000x100x000x000x000x00
};

char qing16K[]={
/* 以下是 ‘清‘ 的 16点阵楷体_GB2312 字模,32 byte */
  0x000x800x000xE00x330x800x100xE0
  0x030x800x400xFC0x2F0x000x010xE0
  0x120x200x130xA00x220x200x630xA0
  0x420x200x020x600x000x200x000x00
};

char ping16K[]={
/* 以下是 ‘屏‘ 的 16点阵楷体_GB2312 字模,32 byte */
  0x000xF00x0F0x300x080x600x0F0x80
  0x0A0x200x090x400x080xF80x170x20
  0x110x3E0x2F0xE00x210x200x420x20
  0x820x200x040x200x080x200x000x00
};

char bao16K[]={
/* 以下是 ‘保‘ 的 16点阵楷体_GB2312 字模,32 byte */
  0x000x000x090xF00x0A0x100x120x10
  0x130xE00x300x800x500xFC0x9F0x80
  0x110xC00x120xA00x140x980x180x8E
  0x100x800x100x800x000x000x000x00
};

char cun16K[]={
/* 以下是 ‘存‘ 的 16点阵楷体_GB2312 字模,32 byte */
  0x010x000x010x000x010xF00x1E0x00
  0x020x700x050x900x080x200x080x40
  0x180x7E0x2B0xA00xC80x200x080x20
  0x080x200x080xA00x000x400x000x00
};

char jia16K[]={
/* 以下是 ‘加‘ 的 16点阵楷体_GB2

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      38613  2007-07-26 13:12  chap13-src\Draw.c

     文件      62808  2007-07-26 13:12  chap13-src\DRAW.EXE

     文件      20827  2007-07-26 13:12  chap13-src\DRAW.OBJ

     文件       5363  1989-05-11 02:01  chap13-src\Egavga.bgi

     文件     260000  2007-07-26 13:12  chap13-src\HAO.DAT

     文件         58  2007-07-23 11:18  chap13-src\readme.txt

     文件     260000  2007-07-06 09:52  chap13-src\TEST.DAT

     目录          0  2009-10-28 16:24  chap13-src

----------- ---------  ---------- -----  ----

               647669                    8


评论

共有 条评论