|  SKYENGINE API  
      参考手册返回目录 | 
  
 int32 
      mr_getScreenInfo(mr_screeninfo * 
screeninfo) 
  
  
  
     
       
Description
获取屏幕信息。
Parameters
  
    
    
       
    Name 
      Description 
       screeninfo 
      返回屏幕信息数据结构mr_screeninfo 
MR_SUCCESS 成功启动
MR_FAILED 失败
获取屏幕宽、高、象素深度等信息。
mr_screeninfo数据结构:
typedef struct
{
uint32 width; //屏幕宽
uint32 height; //屏幕高
uint32 bit; //屏幕象素深度,单位bit,如:6万5千色(16bit色深)应该返回16。
}mr_screeninfo;
/*mrp code*/
mr_screeninfo info;
mrc_getScreenInfo( &info );
mrc_printf( "Screen info:width = %d, height = %d, bit = %d.", info.width, info.height, info.bit );