Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 6 Forum Discussions

biknc_349756
Level 1
Welcome! First question asked First reply posted
Level 1

I am using the POC 6 WIFI/BLE  board  and ModusBus example Ewin graphics that includes graphics examples.

emWin_TFT_FreeRTOS_4mod1

It works fine, but I need help adding a second  BMP picture to it. I have downloaded a image and used the Ewin BMP to C

converter successfully. 

How would I include a second image file  to this existing task file or delete the original image?

bill

0 Likes
1 Solution
Bhamy
Moderator
Moderator 5 replies posted 10 sign-ins First solution authored
Moderator

Hi @biknc_349756 ,

There are 2 ways to add the image to the UI application. 

1. Using Appwizard.

  • Add a image object to the screen and set the bitmap image file to the image object
  • While exporting and saving the project, AppWizard will take care of image to convert it to .c file 

2. Using BmpCVT and emWin API

  • Convert the BMP image to .c file using BmpCVT 
  • Add the .c file to the project
  • Use GUI_DrawBitmap() (emWin API) function to display the image

For more information on this topic you may refer to UM03001_emWin  and UM03003_AppWizard. 

Regards,

Bhamy Narasimha Shenoy

View solution in original post

0 Likes
2 Replies
Bhamy
Moderator
Moderator 5 replies posted 10 sign-ins First solution authored
Moderator

Hi @biknc_349756 ,

There are 2 ways to add the image to the UI application. 

1. Using Appwizard.

  • Add a image object to the screen and set the bitmap image file to the image object
  • While exporting and saving the project, AppWizard will take care of image to convert it to .c file 

2. Using BmpCVT and emWin API

  • Convert the BMP image to .c file using BmpCVT 
  • Add the .c file to the project
  • Use GUI_DrawBitmap() (emWin API) function to display the image

For more information on this topic you may refer to UM03001_emWin  and UM03003_AppWizard. 

Regards,

Bhamy Narasimha Shenoy

0 Likes
Bhamy
Moderator
Moderator 5 replies posted 10 sign-ins First solution authored
Moderator

Hi @biknc_349756 ,

Thread was locked due to inactivity for long time, you can continue the discussion on the topic by opening a new thread with reference to the locked one. The continuous discussion in an inactive thread may mostly be unattended by community users.

Thanks and Regards,

Bhamy Narasimha Shenoy

0 Likes