summaryrefslogtreecommitdiffstats
path: root/doc/html/canvas-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/canvas-example.html')
-rw-r--r--doc/html/canvas-example.html8
1 files changed, 0 insertions, 8 deletions
diff --git a/doc/html/canvas-example.html b/doc/html/canvas-example.html
index 551ba9c2c..e2c64894e 100644
--- a/doc/html/canvas-example.html
+++ b/doc/html/canvas-example.html
@@ -190,21 +190,13 @@ private:
{
<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);
-#endif
}
<a name="x2925"></a>void ImageItem::<a href="tqcanvasrectangle.html#drawShape">drawShape</a>( <a href="ntqpainter.html">TQPainter</a> &amp;p )
{
-// On TQt/Embedded, we can paint a TQImage as fast as a TQPixmap,
-// but on other platforms, we need to use a TQPixmap.
-#if defined(TQ_WS_QWS)
-<a name="x2941"></a> p.<a href="ntqpainter.html#drawImage">drawImage</a>( int(<a href="tqcanvasitem.html#x">x</a>()), int(<a href="tqcanvasitem.html#y">y</a>()), image, 0, 0, -1, -1, OrderedAlphaDither );
-#else
p.<a href="ntqpainter.html#drawPixmap">drawPixmap</a>( int(<a href="tqcanvasitem.html#x">x</a>()), int(<a href="tqcanvasitem.html#y">y</a>()), pixmap );
-#endif
}
bool <a name="f624"></a>ImageItem::hit( const <a href="ntqpoint.html">TQPoint</a> &amp;p ) const