www.pudn.com > cwin.rar > DRAWR.C
/*-----------------------------------------------------------
函数 draw_rectangle : 画矩形
-----------------------------------------------------------*/
#include
void _Cdecl draw_rectangle(x,y,width,high,color,pattern)
int x; /* 矩形左上角列坐标(以象素为单位) */
int y; /* 矩形左上角行坐标(以象素为单位) */
int width; /* 矩形宽度(以象素为单位) */
int high; /* 矩形高度(以象素为单位) */
int color; /* 矩形颜色 */
unsigned char pattern; /* 矩形线型 */
{
_H_Line( x, y,width,color,pattern);
_V_Line( x, y, high,color,pattern);
_V_Line(x+width-1, y, high,color,pattern);
_H_Line( x,y+high-1,width,color,pattern);
}