lib Library API Documentation

KoWmfPaint Class Reference

KoWmfPaint inherits the abstract class KoWmfRead and redirects WMF actions onto a QPaintDevice. More...

#include <kowmfpaint.h>

Inheritance diagram for KoWmfPaint:

Inheritance graph
[legend]
Collaboration diagram for KoWmfPaint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool play (QPaintDevice &target, bool relativeCoord=false)

Detailed Description

KoWmfPaint inherits the abstract class KoWmfRead and redirects WMF actions onto a QPaintDevice.

Uses relative or absolute coordinate.

how to use:

   QPixmap pix( 100, 100 );
   KoWmfPaint wmf;
   if ( wmf.load( "/home/test.wmf" ) ) {
      wmf.play( pix );
   }
   paint.drawPixmap( 0, 0, pix );
 

Definition at line 42 of file kowmfpaint.h.


Member Function Documentation

bool KoWmfPaint::play QPaintDevice target,
bool  relativeCoord = false
 

play WMF file on a QPaintDevice.

Return true on success. Use absolute or relative coordinate : absolute coord. reset the world transfomation Matrix (by default) relative coord. use the existing world transfomation Matrix

Definition at line 28 of file kowmfpaint.cc.

References KoWmfRead::play().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Mar 20 14:27:02 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003