lib

KoPictureWmf Class Reference

Inheritance diagram for KoPictureWmf:

KoPictureBase List of all members.

Detailed Description

Definition at line 39 of file KoPictureWmf.h.


Public Member Functions

 KoPictureWmf ()
virtual ~KoPictureWmf ()
virtual KoPictureType::Type getType (void) const
virtual KoPictureBasenewCopy (void) const
virtual bool isNull (void) const
virtual void draw (QPainter &painter, int x, int y, int width, int height, int sx=0, int sy=0, int sw=-1, int sh=-1, bool fastMode=false)
virtual bool loadData (const QByteArray &array, const QString &extension)
virtual bool save (QIODevice *io) const
virtual QSize getOriginalSize (void) const
virtual QPixmap generatePixmap (const QSize &size, bool smoothScale=false)
virtual QString getMimeType (const QString &extension) const

Protected Member Functions

QPixmap getPixmap (QImage &image)
void drawQPicture (QPicture &clipart, QPainter &painter, int x, int y, int width, int height, int sx, int sy, int sw, int sh)

Protected Attributes

QPicture m_clipart
QByteArray m_rawData
QSize m_size
QSize m_originalSize

Constructor & Destructor Documentation

KoPictureWmf::KoPictureWmf  ) 
 

Default constructor.

Definition at line 38 of file KoPictureWmf.cpp.

KoPictureWmf::~KoPictureWmf  )  [virtual]
 

Destructor.

Definition at line 42 of file KoPictureWmf.cpp.


Member Function Documentation

void KoPictureWmf::draw QPainter &  painter,
int  x,
int  y,
int  width,
int  height,
int  sx = 0,
int  sy = 0,
int  sw = -1,
int  sh = -1,
bool  fastMode = false
[virtual]
 

Draw the image in a painter.

The parameter fastMode allows the picture to be re-sized and drawn quicker if possible

The parameters width, height define the desired size for the image Note that the image is being scaled to that size using scale() - except when printing. This avoids scaling the image at each paint event.

The other parameters are very similar to QPainter::drawPixmap : (x, y) define the position in the painter, (sx, sy) specify the top-left point in pixmap that is to be drawn. The default is (0, 0). (sw, sh) specify the size of the pixmap that is to be drawn. The default, (-1, -1), means all the way to the bottom right of the pixmap.

Reimplemented from KoPictureBase.

Definition at line 81 of file KoPictureWmf.cpp.

bool KoPictureWmf::isNull void   )  const [virtual]
 

Returns true if the picture is null.

Reimplemented from KoPictureBase.

Definition at line 56 of file KoPictureWmf.cpp.

bool KoPictureWmf::save QIODevice *  io  )  const [virtual]
 

save file

Parameters:
io QIODevice used for saving

Reimplemented from KoPictureBase.

Definition at line 105 of file KoPictureWmf.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys