#include <kowmfwrite.h>
Public Member Functions | |
| KoWmfWrite (const TQString &fileName) | |
| bool | begin () |
| bool | end () |
| void | save () |
| void | restore () |
| void | setDefaultDpi (int dpi) |
| void | setFont (const TQFont &f) |
| void | setPen (const TQPen &p) |
| void | setBrush (const TQBrush &b) |
| void | setBackgroundColor (const TQColor &r) |
| void | setBackgroundMode (TQt::BGMode) |
| void | setRasterOp (TQt::RasterOp) |
| void | setWindow (int left, int top, int width, int height) |
| void | setClipRegion (const TQRegion &r) |
| void | clipping (bool enable) |
| void | moveTo (int left, int top) |
| void | lineTo (int left, int top) |
| void | drawRect (int left, int top, int width, int height) |
| void | drawRoundRect (int left, int top, int width, int height, int=25, int=25) |
| void | drawEllipse (int left, int top, int width, int height) |
| void | drawArc (int left, int top, int width, int height, int a, int alen) |
| void | drawPie (int left, int top, int width, int height, int a, int alen) |
| void | drawChord (int left, int top, int width, int height, int a, int alen) |
| void | drawPolyline (const TQPointArray &pa) |
| void | drawPolygon (const TQPointArray &pa, bool winding=false) |
| void | drawPolyPolygon (TQPtrList< TQPointArray > &listPa, bool winding=false) |
| void | drawImage (int left, int top, const TQImage &, int sx=0, int sy=0, int sw=-1, int sh=-1) |
| void | drawText (int x, int y, int w, int h, int flags, const TQString &s, double rotation) |
Detailed Description
KoWmfWrite allows to create a windows placeable meta file (WMF).
Most of the functions are compatible with TQPainter format.
sample of utilization:
KoWmfWrite wmf("/home/test.wmf"); wmf.begin(); wmf.setWindow(0, 0, 200, 200); wmf.drawRect(10, 20, 50, 120); wmf.end();
Definition at line 49 of file kowmfwrite.h.
Constructor & Destructor Documentation
◆ KoWmfWrite()
| KoWmfWrite::KoWmfWrite | ( | const TQString & | fileName | ) |
Definition at line 46 of file kowmfwrite.cpp.
◆ ~KoWmfWrite()
|
virtual |
Definition at line 54 of file kowmfwrite.cpp.
Member Function Documentation
◆ begin()
| bool KoWmfWrite::begin | ( | ) |
◆ clipping()
| void KoWmfWrite::clipping | ( | bool | enable | ) |
Definition at line 226 of file kowmfwrite.cpp.
◆ drawArc()
| void KoWmfWrite::drawArc | ( | int | left, |
| int | top, | ||
| int | width, | ||
| int | height, | ||
| int | a, | ||
| int | alen ) |
Definition at line 275 of file kowmfwrite.cpp.
◆ drawChord()
| void KoWmfWrite::drawChord | ( | int | left, |
| int | top, | ||
| int | width, | ||
| int | height, | ||
| int | a, | ||
| int | alen ) |
Definition at line 311 of file kowmfwrite.cpp.
◆ drawEllipse()
| void KoWmfWrite::drawEllipse | ( | int | left, |
| int | top, | ||
| int | width, | ||
| int | height ) |
Definition at line 267 of file kowmfwrite.cpp.
◆ drawImage()
| void KoWmfWrite::drawImage | ( | int | left, |
| int | top, | ||
| const TQImage & | , | ||
| int | sx = 0, | ||
| int | sy = 0, | ||
| int | sw = -1, | ||
| int | sh = -1 ) |
Definition at line 375 of file kowmfwrite.cpp.
◆ drawPie()
| void KoWmfWrite::drawPie | ( | int | left, |
| int | top, | ||
| int | width, | ||
| int | height, | ||
| int | a, | ||
| int | alen ) |
Definition at line 293 of file kowmfwrite.cpp.
◆ drawPolygon()
| void KoWmfWrite::drawPolygon | ( | const TQPointArray & | pa, |
| bool | winding = false ) |
Definition at line 339 of file kowmfwrite.cpp.
◆ drawPolyline()
| void KoWmfWrite::drawPolyline | ( | const TQPointArray & | pa | ) |
Definition at line 329 of file kowmfwrite.cpp.
◆ drawPolyPolygon()
| void KoWmfWrite::drawPolyPolygon | ( | TQPtrList< TQPointArray > & | listPa, |
| bool | winding = false ) |
Definition at line 349 of file kowmfwrite.cpp.
◆ drawRect()
| void KoWmfWrite::drawRect | ( | int | left, |
| int | top, | ||
| int | width, | ||
| int | height ) |
Definition at line 244 of file kowmfwrite.cpp.
◆ drawRoundRect()
| void KoWmfWrite::drawRoundRect | ( | int | left, |
| int | top, | ||
| int | width, | ||
| int | height, | ||
| int | roudw = 25, | ||
| int | roudh = 25 ) |
Definition at line 252 of file kowmfwrite.cpp.
◆ drawText()
| void KoWmfWrite::drawText | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| int | flags, | ||
| const TQString & | s, | ||
| double | rotation ) |
Definition at line 389 of file kowmfwrite.cpp.
◆ end()
| bool KoWmfWrite::end | ( | ) |
◆ lineTo()
| void KoWmfWrite::lineTo | ( | int | left, |
| int | top ) |
Definition at line 239 of file kowmfwrite.cpp.
◆ moveTo()
| void KoWmfWrite::moveTo | ( | int | left, |
| int | top ) |
Definition at line 234 of file kowmfwrite.cpp.
◆ restore()
| void KoWmfWrite::restore | ( | ) |
Definition at line 132 of file kowmfwrite.cpp.
◆ save()
| void KoWmfWrite::save | ( | ) |
Definition at line 127 of file kowmfwrite.cpp.
◆ setBackgroundColor()
| void KoWmfWrite::setBackgroundColor | ( | const TQColor & | r | ) |
Definition at line 191 of file kowmfwrite.cpp.
◆ setBackgroundMode()
| void KoWmfWrite::setBackgroundMode | ( | TQt::BGMode | mode | ) |
Definition at line 196 of file kowmfwrite.cpp.
◆ setBrush()
| void KoWmfWrite::setBrush | ( | const TQBrush & | b | ) |
Definition at line 162 of file kowmfwrite.cpp.
◆ setClipRegion()
| void KoWmfWrite::setClipRegion | ( | const TQRegion & | r | ) |
Definition at line 221 of file kowmfwrite.cpp.
◆ setDefaultDpi()
| void KoWmfWrite::setDefaultDpi | ( | int | dpi | ) |
Placeable WMF's use logical coordinates and have a default DPI.
This function set the dot per inch ratio. If not specified the dpi is 1024.
Definition at line 59 of file kowmfwrite.cpp.
◆ setFont()
| void KoWmfWrite::setFont | ( | const TQFont & | f | ) |
Definition at line 187 of file kowmfwrite.cpp.
◆ setPen()
| void KoWmfWrite::setPen | ( | const TQPen & | p | ) |
Definition at line 137 of file kowmfwrite.cpp.
◆ setRasterOp()
| void KoWmfWrite::setRasterOp | ( | TQt::RasterOp | op | ) |
Definition at line 205 of file kowmfwrite.cpp.
◆ setWindow()
| void KoWmfWrite::setWindow | ( | int | left, |
| int | top, | ||
| int | width, | ||
| int | height ) |
Definition at line 210 of file kowmfwrite.cpp.
The documentation for this class was generated from the following files:
