Display Images in Qt-supported Formats
This example displays images which are in any format
supported by Qt. Combining this with the Qt ImageIO
Extension adds PNG image support to your browser.
It demonstrates the use of the QNPInstance::streamAsFile()
function.
To build the example, you must first build the
Qt Image IO Extension library
and of course the
Qt Netscape Plugin Extension library.
Then type make in extensions/nsplugin/examples/qtimage/
and copy the resulting qtimage.so or npqtimage.dll
to the Plugins directory of your WWW browser.
|
This plugin supports transparency and scaling of the image, just like
GIFs in most WWW browsers.