This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: Convert RGB values to hex file

Tool/software: Code Composer Studio

I have tried displaying image on tft lcd. I used GIMP software to convert the image and then used pnmtoc command to convert to hex file. 

Actually I want to bypass the GIMP software. Can I not directly use r,g,b values and generate the hex values that can be passed to tft lcd.

  • Hi,

      Our expertise is with the MCU. You are asking for a tool to convert from RGB to hex file. We don't have such tool or script for this job. However, I found this online tool that can perform the conversion. https://www.rgbtohex.net/. If you do some more searches you might be able to find other tools or C source code to do the same.  

  • May it be asked, "From where (or by what mechanism) do you develop or source these 'RGB values' & how likely are they to completely satisfy your Display Imaging needs?"    

    Much depends upon your "Image Source" - photographs are usually encoded into 'JPG, PNG or BMP' file formats.     How do you propose to, 'Directly create & then use 'RGB' values' - under these (highly popular) image formats?     And again - to what point?

    Creating & deploying basic geometric shapes - along w/font colorization - should prove far more 'accepting" of your (thus far, unexplained) desire to (somehow) create & use 'RGB' values only!

  • I didn't find how to convert to hex values.

    But I generated RGB value for each value, converted it into an integer value and plotted those values using pixel draw function.

  • Pardon - but w/your (near) 30 day silence ... might something (more) have been expected?

    • Why do you seek to "bypass the GIMP SW?"    You've (likely) succeeded w/it - why change?
    • What forms of image do you seek to display?   As earlier noted - standard formats exist & are 'well handled' here for you.

    Highly necessary detail remains lacking - your motivation for such effort has not been explained - effort in your behalf requires (some) clarity & cooperation...