lib

KoWmfPaint Class Reference

#include <kowmfpaint.h>

Inheritance diagram for KoWmfPaint:
KoWmfRead

Public Member Functions

bool play (TQPaintDevice &target, bool relativeCoord=false)
Public Member Functions inherited from KoWmfRead
virtual bool load (const TQString &fileName)
virtual bool load (const TQByteArray &array)
virtual bool play ()
bool isStandard (void) const
bool isPlaceable (void) const
bool isEnhanced (void) const
bool isValid (void) const
virtual TQRect boundingRect (void) const
int defaultDpi (void) const
void setDebug (int nbFunc)

Detailed Description

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

Uses relative or absolute coordinate.

how to use:

  TQPixmap 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.

Constructor & Destructor Documentation

◆ KoWmfPaint()

KoWmfPaint::KoWmfPaint ( )

Definition at line 23 of file kowmfpaint.cpp.

◆ ~KoWmfPaint()

KoWmfPaint::~KoWmfPaint ( )
inline

Definition at line 46 of file kowmfpaint.h.

Member Function Documentation

◆ play()

bool KoWmfPaint::play ( TQPaintDevice & target,
bool relativeCoord = false )

play WMF file on a TQPaintDevice.

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.cpp.


The documentation for this class was generated from the following files: