KoPicture.h
KoPictureKey is the structure describing a picture in a unique way.
Definition KoPictureKey.h:76
bool setKeyAndDownloadPicture(const KURL &url, TQWidget *window)
Download and set the key for a possibly remote file.
Definition KoPicture.cpp:235
bool saveAsBase64(KoXmlWriter &writer) const
OASIS FlatXML support: Save picture as base64-encoded data into an XML writer.
Definition KoPicture.cpp:168
bool loadFromBase64(const TQCString &str)
Load the picture from base64-encoded data.
Definition KoPicture.cpp:215
void setKey(const KoPictureKey &key)
Set the key structure describing the picture in a unique way.
Definition KoPicture.cpp:119
bool loadFromFile(const TQString &fileName)
Load the picture from a file named fileName.
Definition KoPicture.cpp:208
void clearAndSetMode(const TQString &newMode)
Clear and set the mode of this KoPicture.
Definition KoPicture.cpp:180
void draw(TQPainter &painter, int x, int y, int width, int height, int sx=0, int sy=0, int sw=-1, int sh=-1, bool fastMode=false)
Draw the picture in a painter.
Definition KoPicture.cpp:132
bool loadXpm(TQIODevice *io)
Load a potentially broken XPM file (for old files of KPresenter).
Definition KoPicture.cpp:147
TQPixmap generatePixmap(const TQSize &size, bool smoothScale=false)
Definition KoPicture.cpp:228
KoPictureKey getKey(void) const
Retrieve the key structure describing the picture in a unique way.
Definition KoPicture.cpp:114
TQDragObject * dragObject(TQWidget *dragSource=0L, const char *name=0L)
Create a dragobject containing this picture.
Definition KoPicture.cpp:252
TQImage generateImage(const TQSize &size)
Generate a TQImage (always in slow mode).
Definition KoPicture.cpp:259
TQImage createAlphaMask(int conversion_flags=0) const
Creates an alpha mask for the picture (first you have to call setAlphaBuffer).
Definition KoPicture.cpp:279
A class for writing out XML (to any TQIODevice), with a special attention on performance.
Definition KoXmlWriter.h:37
