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

📄 cdevice.h

📁 使用键盘上的上、下、左、右四个按键
💻 H
字号:
//------------------------------------------------------------------------------
// File:        cDevice.h
// Date:        2001-5-10 pm 04:42:09
// Written by:  CYu
// Decription:  
// Modification record
//              Leon Zhong modify for PDA CELLULAR L1F10043T00 (4K color)
//------------------------------------------------------------------------------
// Copyright:   EPSON Proprietary Material
//              Copyright (c) 2001, All Rights Reserved
//              SHANGHAI EPSON ELECTRONICS CO., LTD.
//
//              DISTRIBUTION PROHIBITED without written authorization from EPSON
//------------------------------------------------------------------------------
#if !defined _C_DEVICE_H_
#define _C_DEVICE_H_

#include <cBType.h>

#define SCREEN_WIDTH    320
#define SCREEN_HEIGHT   240
#define BYTEPERPIXEL    1
#define BITPERPIXEL     (BYTEPERPIXEL*8)
#define MAXCOLOR        256

#define COPY_PUT        1
#define XOR_PUT         2
#define OR_PUT          3
#define AND_PUT         4
#define NOT_PUT         5

typedef struct tagPHYIMAGEINFO
{
    S16 x;
    S16 y;
    S16 width;
    S16 height;
    U8  *buffer;
    U8  method;
    U16 ColorIndex;
    U16 BkColorIndex;
} PHYIMAGEINFO, *PPHYIMAGEINFO;

#if defined __cplusplus
extern "C"
{
#endif

U16 seGetScreenSize( S16 *width, S16 *height );
U16 seInit( U32 para );
void seSetPixel( S16 x, S16 y, U16 ColorIndex );
void seGetPixel( S16 x, S16 y, U16 *ColorIndex );
void seDrawLine( S16 x1, S16 y1, S16 x2, S16 y2, U16 ColorIndex, U16 mask );
void seInvertLine( S16 x1, S16 y1, S16 x2, S16 y2, U16 mask );
void seSetImage( S16 x, S16 y, S16 width, S16 height , U8 *buffer, U8 method );
void seSetMonoImage( PPHYIMAGEINFO ppii );
void seGetImage( S16 x, S16 y, S16 width , S16 height , U16 *buffer);
void seRGBtoIndex( RGB rgb , U16 *ColorIndex );

#if defined __cplusplus
}
#endif

#endif
//----------------------------- The End of the File ----------------------------

⌨️ 快捷键说明

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