lib
KoPictureImage Class Reference
Inheritance diagram for KoPictureImage:

Detailed Description
Definition at line 34 of file KoPictureImage.h.
Public Member Functions | |
KoPictureImage () | |
virtual | ~KoPictureImage () |
KoPictureType::Type | getType (void) const |
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 | 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 |
virtual QImage | generateImage (const QSize &size) |
virtual bool | hasAlphaBuffer () const |
virtual void | setAlphaBuffer (bool enable) |
virtual QImage | createAlphaMask (int conversion_flags=0) const |
virtual void | clearCache (void) |
Protected Member Functions | |
QPixmap | getPixmap (QImage &image) |
void | scaleAndCreatePixmap (const QSize &size, bool fastMode=false) |
Constructor & Destructor Documentation
|
Default constructor.
Definition at line 34 of file KoPictureImage.cpp. |
|
Destructor.
Definition at line 40 of file KoPictureImage.cpp. |
Member Function Documentation
|
Create a dragobject containing this picture.
Reimplemented from KoPictureBase. Definition at line 178 of file KoPictureImage.cpp. |
|
Draw the image in a painter. No, this isn't as simple as painter.drawPixmap(). This method ensures that the best quality is used when printing, scaling the painter.
The parameter
The parameters
The other parameters are very similar to QPainter::drawPixmap : ( Reimplemented from KoPictureBase. Definition at line 92 of file KoPictureImage.cpp. |
|
Generate a QImage (always in slow mode).
Reimplemented from KoPictureBase. Definition at line 183 of file KoPictureImage.cpp. |
|
Returns true if the picture is null.
Reimplemented from KoPictureBase. Definition at line 54 of file KoPictureImage.cpp. |
|
save file
Reimplemented from KoPictureBase. Definition at line 148 of file KoPictureImage.cpp. |
The documentation for this class was generated from the following files: