converting images from png to others including transparency

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • converting images from png to others including transparency

    Hello,

    I'm using emwin 5.30 with lpc4357 in 888 mode.
    I wanted to convert PNG with alpha images -> bitmaps Or any other format which contains transparency.
    I've tried bmp converter but unable to find proper solution.
    If anyone know please provide the procedure.


    Thank you
  • Hi,

    To convert a PNG with transparency into a c-file follow the steps below.

    1. Open the BitmapConvert
    2. Open the png file (or drag'n'drop it into the BitmapConverter)
    3. Go to File -> Save As and choose the format (C bitmap file) the path and the file name
    4. Click Save
    5. Under Format specification choose "True color with alpha" or "True color with alpha, r/b swapped, alpha inverted"
    6. Click Ok

    Now you have a c-file which can be included to your project and used in your code. Of course, to have a bitmap with transparency you need a png with transparency.

    Regards
    Sven
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.