BMPcvt v5.22

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

  • BMPcvt v5.22

    I make a bitmap conversion from 32x32 png format arrow icon (attached)

    Saving the bitmap with "True color with alpha channel" produce this structure
    GUI_CONST_STORAGE GUI_BITMAP bmarrowD = {
    32, // xSize
    32, // ySize
    128, // BytesPerLine
    32, // BitsPerPixel
    (unsigned char *)_acarrowD, // Pointer to picture data
    NULL, // Pointer to palette
    GUI_DRAW_BMP8888
    };
    and is correctly displayed by GUI_DrawBitmap

    But if I change the saving options and I use "True color with alpha channel, compressed"
    The new strcuture is

    GUI_CONST_STORAGE GUI_BITMAP bmarrowD = {
    32, // xSize
    32, // ySize
    128, // BytesPerLine
    32, // BitsPerPixel
    (unsigned char *)_acarrowD, // Pointer to picture data
    NULL, // Pointer to palette
    GUI_DRAW_RLE32
    };

    but GUI_DrawBitmap can't display the arrow image

    I have other compressed bitmaps but saved by GUI_DRAW_RLEM16 option and they are displayed correctly
    Files
    • arrowD.zip

      (406 Byte, downloaded 555 times, last: )

    The post was edited 2 times, last by accacca ().