diff options
Diffstat (limited to 'doc/html/canvas-example.html')
-rw-r--r-- | doc/html/canvas-example.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/canvas-example.html b/doc/html/canvas-example.html index 32d05b269..70b9d2000 100644 --- a/doc/html/canvas-example.html +++ b/doc/html/canvas-example.html @@ -142,7 +142,7 @@ private: #include <<a href="qpainter-h.html">ntqpainter.h</a>> #include <<a href="qprinter-h.html">ntqprinter.h</a>> #include <<a href="qlabel-h.html">ntqlabel.h</a>> -#include <<a href="qimage-h.html">ntqimage.h</a>> +#include <<a href="tqimage-h.html">tqimage.h</a>> #include <<a href="qprogressdialog-h.html">ntqprogressdialog.h</a>> #include "canvas.h" @@ -174,21 +174,21 @@ static const int imageRTTI = 984376; class ImageItem: public <a href="tqcanvasrectangle.html">TQCanvasRectangle</a> { public: - ImageItem( <a href="ntqimage.html">TQImage</a> img, TQCanvas *canvas ); + ImageItem( <a href="tqimage.html">TQImage</a> img, TQCanvas *canvas ); int rtti () const { return imageRTTI; } bool hit( const <a href="ntqpoint.html">TQPoint</a>&) const; protected: void drawShape( <a href="ntqpainter.html">TQPainter</a> & ); private: - <a href="ntqimage.html">TQImage</a> image; + <a href="tqimage.html">TQImage</a> image; <a href="ntqpixmap.html">TQPixmap</a> pixmap; }; -<a name="f623"></a>ImageItem::ImageItem( <a href="ntqimage.html">TQImage</a> img, TQCanvas *canvas ) +<a name="f623"></a>ImageItem::ImageItem( <a href="tqimage.html">TQImage</a> img, TQCanvas *canvas ) : <a href="tqcanvasrectangle.html">TQCanvasRectangle</a>( canvas ), image(img) { -<a name="x2935"></a><a name="x2932"></a> <a href="tqcanvasrectangle.html#setSize">setSize</a>( image.<a href="ntqimage.html#width">width</a>(), image.<a href="ntqimage.html#height">height</a>() ); +<a name="x2935"></a><a name="x2932"></a> <a href="tqcanvasrectangle.html#setSize">setSize</a>( image.<a href="tqimage.html#width">width</a>(), image.<a href="tqimage.html#height">height</a>() ); #if !defined(TQ_WS_QWS) <a name="x2943"></a> pixmap.<a href="ntqpixmap.html#convertFromImage">convertFromImage</a>(image, OrderedAlphaDither); @@ -211,9 +211,9 @@ bool <a name="f624"></a>ImageItem::hit( const <a href="ntqpoint.html">TQPoint</a { <a name="x2944"></a> int ix = p.<a href="ntqpoint.html#x">x</a>()-int(<a href="tqcanvasitem.html#x">x</a>()); <a name="x2945"></a> int iy = p.<a href="ntqpoint.html#y">y</a>()-int(<a href="tqcanvasitem.html#y">y</a>()); -<a name="x2934"></a> if ( !image.<a href="ntqimage.html#valid">valid</a>( ix , iy ) ) +<a name="x2934"></a> if ( !image.<a href="tqimage.html#valid">valid</a>( ix , iy ) ) return FALSE; -<a name="x2933"></a> TQRgb pixel = image.<a href="ntqimage.html#pixel">pixel</a>( ix, iy ); +<a name="x2933"></a> TQRgb pixel = image.<a href="tqimage.html#pixel">pixel</a>( ix, iy ); return tqAlpha( pixel ) != 0; } @@ -680,7 +680,7 @@ void <a name="f645"></a>Main::addButterfly() if ( butterfly_fn.isEmpty() ) return; if ( !butterflyimg ) { - butterflyimg = new <a href="ntqimage.html">TQImage</a>[4]; + butterflyimg = new <a href="tqimage.html">TQImage</a>[4]; butterflyimg[0].load( butterfly_fn ); butterflyimg[1] = butterflyimg[0].smoothScale( int(butterflyimg[0].width()*0.75), int(butterflyimg[0].height()*0.75) ); @@ -690,8 +690,8 @@ void <a name="f645"></a>Main::addButterfly() int(butterflyimg[0].height()*0.25) ); } <a href="tqcanvaspolygonalitem.html">TQCanvasPolygonalItem</a>* i = new ImageItem(butterflyimg[rand()%4],&canvas); -<a name="x2915"></a> i-><a href="tqcanvasitem.html#move">move</a>(rand()%(canvas.<a href="tqcanvas.html#width">width</a>()-butterflyimg-><a href="ntqimage.html#width">width</a>()), - rand()%(canvas.<a href="tqcanvas.html#height">height</a>()-butterflyimg-><a href="ntqimage.html#height">height</a>())); +<a name="x2915"></a> i-><a href="tqcanvasitem.html#move">move</a>(rand()%(canvas.<a href="tqcanvas.html#width">width</a>()-butterflyimg-><a href="tqimage.html#width">width</a>()), + rand()%(canvas.<a href="tqcanvas.html#height">height</a>()-butterflyimg-><a href="tqimage.html#height">height</a>())); i-><a href="tqcanvasitem.html#setZ">setZ</a>(rand()%256+250); i-><a href="tqcanvasitem.html#show">show</a>(); } @@ -701,7 +701,7 @@ void <a name="f646"></a>Main::addLogo() if ( logo_fn.isEmpty() ) return; if ( !logoimg ) { - logoimg = new <a href="ntqimage.html">TQImage</a>[4]; + logoimg = new <a href="tqimage.html">TQImage</a>[4]; logoimg[0].load( logo_fn ); logoimg[1] = logoimg[0].smoothScale( int(logoimg[0].width()*0.75), int(logoimg[0].height()*0.75) ); @@ -711,8 +711,8 @@ void <a name="f646"></a>Main::addLogo() int(logoimg[0].height()*0.25) ); } <a href="tqcanvaspolygonalitem.html">TQCanvasPolygonalItem</a>* i = new ImageItem(logoimg[rand()%4],&canvas); - i-><a href="tqcanvasitem.html#move">move</a>(rand()%(canvas.<a href="tqcanvas.html#width">width</a>()-logoimg-><a href="ntqimage.html#width">width</a>()), - rand()%(canvas.<a href="tqcanvas.html#height">height</a>()-logoimg-><a href="ntqimage.html#width">width</a>())); + i-><a href="tqcanvasitem.html#move">move</a>(rand()%(canvas.<a href="tqcanvas.html#width">width</a>()-logoimg-><a href="tqimage.html#width">width</a>()), + rand()%(canvas.<a href="tqcanvas.html#height">height</a>()-logoimg-><a href="tqimage.html#width">width</a>())); i-><a href="tqcanvasitem.html#setZ">setZ</a>(rand()%256+256); i-><a href="tqcanvasitem.html#show">show</a>(); } @@ -888,7 +888,7 @@ void <a name="f654"></a>Main::addRectangle() #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> #include <<a href="qmenubar-h.html">ntqmenubar.h</a>> #include <<a href="qapplication-h.html">ntqapplication.h</a>> -#include <<a href="qimage-h.html">ntqimage.h</a>> +#include <<a href="tqimage-h.html">tqimage.h</a>> #include "canvas.h" |