Advertisement

LCD显示功能-ARM体系-2440

阅读量:
复制代码
 void Paint_BMP(int x0,int y0,int level,int vertical,const unsigned char *bmp)/*在屏幕上画图*/

    
 {
    
     int x,y;
    
     UINT32 col;
    
     int p = 0;
    
 	UINT16 *addr;
    
  
    
     for( y = 0 ; y < 272 ; y++ )
    
     {
    
    for( x = 0 ; x < 480 ; x++ )
    
    {
    
    col = bmp[p+1] | (bmp[p]<<8) ; 
    
    // if ( ( (x0+x) < SCR_XSIZE) && ( (y0+y) < SCR_YSIZE) )
    
      //  LCD_BUFFER[y0+y][x0+x] = c ;  
    
      PutPixel1(x0+x, y0+y, col);
    
         p += 2 ;  
    
    }
    
     }
    
 }      
    
    
    
    
复制代码
 void PutPixel1(UINT32 x

全部评论 (0)

还没有任何评论哟~