lib
KoPictureEps Class Reference
Inheritance diagram for KoPictureEps:

Detailed Description
Definition at line 35 of file KoPictureEps.h.
Public Member Functions | |
KoPictureEps () | |
virtual | ~KoPictureEps () |
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 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 void | clearCache (void) |
Protected Member Functions | |
QPixmap | getPixmap (QImage &image) |
void | scaleAndCreatePixmap (const QSize &size, bool fastMode, const int resolutionx, const int resolutiony) |
QImage | scaleWithGhostScript (const QSize &size, const int resolutionx, const int resolutiony) |
bool | extractPostScriptStream (void) |
Constructor & Destructor Documentation
KoPictureEps::KoPictureEps | ( | ) |
KoPictureEps::~KoPictureEps | ( | ) | [virtual] |
Member Function Documentation
bool KoPictureEps::isNull | ( | void | ) | const [virtual] |
Returns true if the picture is null.
Reimplemented from KoPictureBase.
Definition at line 69 of file KoPictureEps.cpp.
void KoPictureEps::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.
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 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 236 of file KoPictureEps.cpp.
bool KoPictureEps::save | ( | QIODevice * | io | ) | const [virtual] |
save file
- Parameters:
-
io QIODevice used for saving
Reimplemented from KoPictureBase.
Definition at line 413 of file KoPictureEps.cpp.
QImage KoPictureEps::generateImage | ( | const QSize & | size | ) | [virtual] |
Generate a QImage (always in slow mode).
Reimplemented from KoPictureBase.
Definition at line 436 of file KoPictureEps.cpp.
The documentation for this class was generated from the following files: