lib
KoPictureBase Class Reference
Inheritance diagram for KoPictureBase:

Detailed Description
Definition at line 42 of file KoPictureBase.h.
Public Member Functions | |
KoPictureBase () | |
virtual | ~KoPictureBase () |
virtual KoPictureType::Type | getType (void) const |
virtual KoPictureBase * | newCopy (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 QDragObject * | dragObject (QWidget *dragSource=0L, const char *name=0L) |
virtual bool | load (QIODevice *io, const QString &extension) |
virtual bool | loadData (const QByteArray &array, const QString &extension) |
virtual bool | save (QIODevice *io) const |
virtual bool | saveAsBase64 (KoXmlWriter &writer) const |
virtual QSize | getOriginalSize (void) const |
virtual QPixmap | generatePixmap (const QSize &size, bool smoothScale=false) |
virtual QString | getMimeType (const QString &extension) const |
bool | isSlowResizeModeAllowed (void) const |
virtual QImage | generateImage (const QSize &size) |
virtual bool | hasAlphaBuffer () const |
virtual void | setAlphaBuffer (bool) |
virtual QImage | createAlphaMask (int=0) const |
virtual void | clearCache (void) |
Constructor & Destructor Documentation
|
Default constructor.
Definition at line 37 of file KoPictureBase.cpp. |
|
Destructor.
Definition at line 48 of file KoPictureBase.cpp. |
Member Function Documentation
|
Create a dragobject containing this picture.
Reimplemented in KoPictureImage. Definition at line 125 of file KoPictureBase.cpp. |
|
Draw the picture in a painter.
The parameter
The parameters
The other parameters are very similar to QPainter::drawPixmap : ( Reimplemented in KoPictureClipart, KoPictureEps, KoPictureImage, and KoPictureWmf. Definition at line 67 of file KoPictureBase.cpp. |
|
Generate a QImage (always in slow mode).
Reimplemented in KoPictureEps, and KoPictureImage. Definition at line 134 of file KoPictureBase.cpp. |
|
Returns true if the picture is null.
Reimplemented in KoPictureClipart, KoPictureEps, KoPictureImage, and KoPictureWmf. Definition at line 62 of file KoPictureBase.cpp. |
|
save file
Reimplemented in KoPictureClipart, KoPictureEps, KoPictureImage, and KoPictureWmf. Definition at line 88 of file KoPictureBase.cpp. |
|
OASIS FlatXML support: Save picture as base64-encoded data into an XML writer.
Definition at line 94 of file KoPictureBase.cpp. |
The documentation for this class was generated from the following files: