⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 draw.h

📁 sharp的arm920t 7A400的评估板附带光盘Sharp KEVLH7A400 v0.3b Welcome to the SHARP KEV7A400 Evaluation board
💻 H
字号:
/**********************************************************************
 *	$Workfile:   draw.h  $
 *	$Revision:   1.0  $
 *	$Author:   WellsK  $
 *	$Date:   Sep 23 2002 13:54:18  $
 *
 *	Project: LH7A400 
 *
 *	Description:
 *     Basic draw functions (line, box, circle). All pixel coordinates
 *     are positive. (X=0, Y=0 is the upper left hand corner of the
 *     display).
 * 
 *	References:
 *     Internal documentation
 *
 *	Revision History:
 *	$Log:   //smaicnt2/pvcs/VM/CDROM/archives/KEV7A400/Software/Board applications/Simple startup demo/draw.h-arc  $
 * 
 *    Rev 1.0   Sep 23 2002 13:54:18   WellsK
 * Initial revision.
 * 
 * 
 *	COPYRIGHT (C) 2001 SHARP MICROELECTRONICS OF THE AMERICAS, INC.
 *		CAMAS, WA
 *********************************************************************/

#ifndef DRAW_H
#define DRAW_H

#include "SMA_Types.h"

// Initialize the draw package, set the active frame buffer base
// address
void draw_init (UNS_16 *fb_addr, int xmax, int ymax);

// Set the pen width (in pixels)
void draw_set_pen_width (int pen_width);

// Set the pen color
void draw_set_pen_color (UNS_16 pen_color);

// Set fill color (used for boxes and circles)
void draw_set_fill_color (UNS_16 fill_color);

// Draw a line from (X1, Y1) to (X2, Y2)
void draw_line (int x1, int y1, int x2, int y2);

// Place a box with corners (X1, Y1) and (X2, Y2)
void draw_box (int x1, int y1, int x2, int y2);

// Place a circle with center (X1, Y1) and radius RAD (in pixels)
void draw_circle (int x1, int y1, int RAD);

// Fills the display with the active fill color
void draw_clear_screen (void);

// Puts a pixel at (X, Y) in th epen color
void draw_pixel (int x1, int y1);

#endif /* DRAW_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -