Results 1 to 4 of 4

Thread: Alpha Channel support is broken for GIMP png and bmp files

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2008
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Alpha Channel support is broken for GIMP png and bmp files

    Hi,

    I'm rather new to 4.4.0 programming, however, the following code:

    QImage temp(":res/ta_only.bmp");
    bool test=temp.hasAlphaChannel();

    always sets test to false though there is an alpha channel in the 32-bit .bmp file and in a .png variant. I'm using GIMP to edit the file and alpha channel, and the alpha channel shows up clearly in the channel display.

    FWIW, the image draws all white using drawTexture (using OpenGL for rendering).

    Any help would be appreciated.

    Matt
    Attached Images Attached Images

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.