Posts by Dejan

    I am using Flexcolor driver with 16-bit color resolution and precompiled EMWin library for ARM MDK.
    Memory is limited, so no cache is used. Display controller is ILI9341. I am curious if it is possible to
    use bitmaps with transparent background? If so, which format should be used for conversion to C
    source file?
    In BMP2C converter, I convert image to best palette+transparency, select 0x00000000 as transparent color
    and then export to C file but after that, transparency is lost and image is shown with black background.

    I have implemented display read-back function and it seems to work correctly ( I can see GUI reading
    back pixel data in chunks of 3 bytes).

    Icons are stored in PNG format and have transparent background (sample attached).

    - Dejan

    Thanks for you response. I am familiar with color modes - what confuses me is this: - it does not matter what kind of file (565 or swapped 565 format) I choose - the resulting image is always shown the same way. I would expect that if I choose the wrong format (e.g. 565 instead of swapped 565), color should be swapped too. However, that's not the case. Files are differently organized, but encoding method is also changed -> therefore EmWin always displays the same image. If I manually change encoding method in c-file, it is then show the right way.
    I have configured lcdconf.c the right way, tested it with blue/red bars and they are shown correctly, the problem is only with these 565-formated BMP's.

    I am confused with "Options->Save colors in ARGB mode" flag. I am using a display with 64K colors in ARGB mode. I want to convert Windows BMP files to HighColor (565). Whatever I do,
    I can't create the right color order -> blue and red are always swapped. I created both HighColor(565) and HighColor(565) swapped files. Colors inside the file are correctly swapped, but
    color encoding method in the bitmap description complement that so images are always shown in the same (wrong) way. Also, changing that Options flag and re-creating the files never
    results in any file difference. Interestingly, if I paletize the images first, colors are shown correctly.
    I am using the latest version of BmpCvt (5.46a) and GUI (5.46) and I would appreciate some guidance here.
    Also, when I try to open 64K color BMP file, BmpCVT locks so I have to kill it using TaskManager (example ZIP file with BMP image attached).