qtimage.doc

来自「qt-x11-free-3.0.3.tar.gz minigui图形界面工具」· DOC 代码 · 共 40 行

DOC
40
字号
/*! \page qtimage-nsplugin-example.html  \ingroup nsplugin-examples  \title 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 \link nsplugin.html  Qt Netscape Plugin Extension \endlink library. Then type \c make in  \c extensions/nsplugin/examples/qtimage/ and copy the resulting \c  qtimage.so or \c npqtimage.dll to the Plugins directory of your web  browser.  <embed src=\"pnglogo.png\" width=256 height=192>  This plugin displays a \link http://www.libpng.org/pub/png/  PNG format \endlink image.  New image format can be supported by adding new image I/O handlers  to the Qt library (see QImage::defineIOHandler), thus providing the  functionality in both applications and WWW plugins from the same  code.  This plugin supports transparency and scaling of the image, just  like GIFs in most web browsers.  <embed align=middle src="test.png" width=182 height=138>  <embed align=middle src="test.png" width=137 height=104>  <embed align=middle src="test.png" width=91 height=69>  <embed align=middle src="test.png" width=46 height=35>  Implementation:   \include qtimage/qtimage.cpp*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?