[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main
 parent
 thread


Re: please....correct png support
by emmanuel on Tuesday 11/Sep/2001, @04:59
png was supported since KDE1, and is largely used by all KDE programs (i believe all kde icons are in png no?).
well anyway no worries. check you have libpng before you compile QT.
  Related Links
 ·   Articles on Community and Events
 ·   Also by emmanuel
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Re: please....correct png support
by Andrea Albarelli on Tuesday 11/Sep/2001, @05:07
I think the author was talking about full PNG support ... last time I checked the alpha channel in PNG wasn't supported ( alpha under 127 was transparent and >= 127 was visible ).
[ Reply To This | View ]
  • Re: please....correct png support
    by Richard Moore on Tuesday 11/Sep/2001, @05:12
    Qt 3 uses the XRender extension to provide hardware accelerated alpha channel support. This means that the alpha information in an image with will be applied automatically when the image is drawn.

    Rich.
    [ Reply To This | View ]
    • Re: please....correct png support
      by Richard Stellingwerff on Tuesday 11/Sep/2001, @11:41
      I wonder though, this X-Render thing is supposed to be so cool, but does it act on changes behind the alpha blended image? Because Mosfet's transparent menus do not update when a window beneath it (xchat for example) changes.

      Now this usually isn't an issue with websites, but I was just wondering, is this a limitation of the X-Render, or just lazy coding from Mosfet (or anyone who uses the X-Render code)?
      [ Reply To This | View ]
      • Re: please....correct png support
        by anonymous on Tuesday 11/Sep/2001, @15:38
        I may be wrong, but I think that the X-Render extention it's not yet in place.

        If I remember well, Mosfet make transparent menus by first saving in a buffer the image behind the menu and then showing it as the background of the menu; that is why it doesn't get updated when the real background does.
        [ Reply To This | View ]
        • Re: please....correct png support
          by Daniel Molkentin on Wednesday 12/Sep/2001, @13:16
          It is wrong. XFree has full support for XRender since 4.1 on almost all drivers.

          Qt3 supports XRender. So from now on we can use XRender in KDE.

          Greetings,

          </daniel>
          [ Reply To This | View ]
  • Re: please....correct png support
    by Marcus Camen on Tuesday 11/Sep/2001, @05:13
    Yep. KDE doesn't fully support transparent PNGs.
    Just look at http://www.libpng.org/pub/png/pngs-img.html with Mozilla and Konqueror or go to http://bugs.kde.org/db/20/20155.html .
    [ Reply To This | View ]
  • Re: please....correct png support
    by oliv on Wednesday 12/Sep/2001, @00:54
    Exactly what I meant :)
    Thanks for precisingg my thought (for me, it was obvious, but it did not seem to actually be for everyone)

    Treating PNG without the alpha channel is like dispaying a colour image in grayscale. Of course we can see something, but it's just wrong.
    [ Reply To This | View ]
Try this example
by Andrea Albarelli on Tuesday 11/Sep/2001, @05:11
Try this example PNG created with GIMP ... the center shourd be blended.
Try saving it and loading with the GIMP ....
Click to download attachment example.png
11KB (11537 bytes)

[ Reply To This | View ]
  • Re: Try this example
    by Ricardo Galli on Tuesday 11/Sep/2001, @05:30
    This example show few bugs:

    1. If you right-click and select "New Window" for the first time, the new window will show the binary data.

    2. The you just click and you will see a red box with a smaller white box in the center-

    3. Right click again and select "New window". You will see only a red box.

    Package konqueror 2.2.0.20010822-1.
    [ Reply To This | View ]
  • Re: Try this example
    by Frerich Raabe on Tuesday 11/Sep/2001, @07:59
    Shows a red border which is blended into a black rectangle in the middle. Dunno whether it's supposed to be black, tho, but the blending certainly works.
    [ Reply To This | View ]

 
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "Being part of KDE is quite a character building experience." -- Matthias Ettrich
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]