📄 qtimage.doc
字号:
/*! \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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -