图片需是bmp格式,软件设置如下:

lcd屏显示图片

设置最大宽度和高度后点旁边的右箭头lcd屏显示图片,然后点重新载入,点保存。

void LED_Show_Image_logo(void)

{

int x=0,y=0;i=0; n=0;

LCD_setwindow(10,8,108+10,37+8);

  while(n<7992)

{

i=gImage_logo[n];

i<<=8 ;

i=i|gImage_logo[n+1];

  LCD_DrawColorPoint(x+10,y+5,i);

y++;

if(y==37){x++; if(x==108)x=0; y=0;}

n+=2;

}  

}

函数中7992是生成图片数组的大小,108和37是图片大小,也就是软件中输出图像大小。

在屏上显示的起始坐标是 LCD_DrawColorPoint(x+10,y+5,i);这句中的10,5。

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2021-12-26
  • 2021-10-12
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-07
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2021-07-10
  • 2021-07-19
  • 2022-12-23
相关资源
相似解决方案