#include <qwmf.h>
|
| virtual bool | load (const TQString &fileName) |
| virtual bool | load (TQBuffer &buffer) |
| virtual bool | paint (const TQPaintDevice *target, bool absolute=false) |
| bool | isPlaceable (void) const |
| bool | isEnhanced (void) const |
| TQRect | bbox (void) const |
| void | setWindowOrg (long num, short *parms) |
| void | setWindowExt (long num, short *parms) |
| void | lineTo (long num, short *parms) |
| void | moveTo (long num, short *parms) |
| void | ellipse (long num, short *parms) |
| void | polygon (long num, short *parms) |
| void | polyPolygon (long num, short *parms) |
| void | polyline (long num, short *parms) |
| void | rectangle (long num, short *parms) |
| void | roundRect (long num, short *parms) |
| void | arc (long num, short *parms) |
| void | chord (long num, short *parms) |
| void | pie (long num, short *parms) |
| void | setPolyFillMode (long num, short *parms) |
| void | setBkColor (long num, short *parms) |
| void | setBkMode (long num, short *parms) |
| void | setPixel (long num, short *parms) |
| void | setRop (long num, short *parms) |
| void | saveDC (long num, short *parms) |
| void | restoreDC (long num, short *parms) |
| void | intersectClipRect (long num, short *parms) |
| void | excludeClipRect (long num, short *parms) |
| void | setTextColor (long num, short *parms) |
| void | setTextAlign (long num, short *parms) |
| void | textOut (long num, short *parms) |
| void | extTextOut (long num, short *parms) |
| void | dibBitBlt (long num, short *parms) |
| void | dibStretchBlt (long num, short *parms) |
| void | stretchDib (long num, short *parms) |
| void | dibCreatePatternBrush (long num, short *parms) |
| void | selectObject (long num, short *parms) |
| void | deleteObject (long num, short *parms) |
| void | createEmptyObject (long num, short *parms) |
| void | createBrushIndirect (long num, short *parms) |
| void | createPenIndirect (long num, short *parms) |
| void | createFontIndirect (long num, short *parms) |
| void | noop (long, short *) |
| void | end (long, short *) |
| int | dpi (void) const |
QWinMetaFile is a WMF viewer based on TQt toolkit How to use QWinMetaFile :
#include "qwmf.h"
QWinMetaFile wmf;
TQPicture pic; // or TQImage pic;
if ( wmf.load( filename )
* wmf.paint( &pic );
Definition at line 52 of file qwmf.h.
◆ QWinMetaFile()
| QWinMetaFile::QWinMetaFile |
( |
| ) |
|
◆ ~QWinMetaFile()
| QWinMetaFile::~QWinMetaFile |
( |
| ) |
|
|
virtual |
◆ addHandle()
| void QWinMetaFile::addHandle |
( |
WinObjHandle * | handle | ) |
|
|
protected |
Handle win-object-handles.
Definition at line 1143 of file qwmf.cpp.
◆ arc()
| void QWinMetaFile::arc |
( |
long | num, |
|
|
short * | parms ) |
◆ bbox()
| TQRect QWinMetaFile::bbox |
( |
void | | ) |
const |
|
inline |
- Returns
- bounding rectangle
Definition at line 87 of file qwmf.h.
◆ calcCheckSum()
| unsigned short QWinMetaFile::calcCheckSum |
( |
WmfPlaceableHeader * | apmfh | ) |
|
|
protected |
Calculate header checksum.
Definition at line 1050 of file qwmf.cpp.
◆ chord()
| void QWinMetaFile::chord |
( |
long | num, |
|
|
short * | parms ) |
◆ color()
| TQColor QWinMetaFile::color |
( |
short * | parm | ) |
|
|
protected |
Returns color given by the two parameters.
Definition at line 1114 of file qwmf.cpp.
◆ createBrushIndirect()
| void QWinMetaFile::createBrushIndirect |
( |
long | num, |
|
|
short * | parms ) |
create a logical brush
Definition at line 928 of file qwmf.cpp.
◆ createEmptyObject()
| void QWinMetaFile::createEmptyObject |
( |
long | num, |
|
|
short * | parms ) |
create an empty object in the object list
Definition at line 918 of file qwmf.cpp.
◆ createFontIndirect()
| void QWinMetaFile::createFontIndirect |
( |
long | num, |
|
|
short * | parms ) |
create a logical font
Definition at line 1015 of file qwmf.cpp.
◆ createPenIndirect()
| void QWinMetaFile::createPenIndirect |
( |
long | num, |
|
|
short * | parms ) |
create a logical pen
Definition at line 978 of file qwmf.cpp.
◆ deleteHandle()
| void QWinMetaFile::deleteHandle |
( |
int | idx | ) |
|
|
protected |
◆ deleteObject()
| void QWinMetaFile::deleteObject |
( |
long | num, |
|
|
short * | parms ) |
Free object handle.
Definition at line 911 of file qwmf.cpp.
◆ dibBitBlt()
| void QWinMetaFile::dibBitBlt |
( |
long | num, |
|
|
short * | parms ) |
copies a DIB into a dest location
Definition at line 797 of file qwmf.cpp.
◆ dibCreatePatternBrush()
| void QWinMetaFile::dibCreatePatternBrush |
( |
long | num, |
|
|
short * | parms ) |
create a pattern brush
Definition at line 886 of file qwmf.cpp.
◆ dibStretchBlt()
| void QWinMetaFile::dibStretchBlt |
( |
long | num, |
|
|
short * | parms ) |
stretches a DIB into a dest location
Definition at line 828 of file qwmf.cpp.
◆ dibToBmp()
| bool QWinMetaFile::dibToBmp |
( |
TQImage & | bmp, |
|
|
const char * | dib, |
|
|
long | size ) |
|
protected |
Converts DIB to BMP.
Definition at line 1227 of file qwmf.cpp.
◆ dpi()
| int QWinMetaFile::dpi |
( |
void | | ) |
const |
|
inline |
Resolution of the image in dots per inch.
Definition at line 177 of file qwmf.h.
◆ ellipse()
| void QWinMetaFile::ellipse |
( |
long | num, |
|
|
short * | parms ) |
◆ end()
| void QWinMetaFile::end |
( |
long | , |
|
|
short * | ) |
◆ excludeClipRect()
| void QWinMetaFile::excludeClipRect |
( |
long | num, |
|
|
short * | parms ) |
delete a clipping rectangle of the original region
Definition at line 680 of file qwmf.cpp.
◆ extTextOut()
| void QWinMetaFile::extTextOut |
( |
long | num, |
|
|
short * | parms ) |
◆ findFunc()
| int QWinMetaFile::findFunc |
( |
unsigned short | aFunc | ) |
const |
|
protectedvirtual |
Find function in metafunc table by metafile-function.
Returns index or -1 if not found.
Definition at line 1067 of file qwmf.cpp.
◆ intersectClipRect()
| void QWinMetaFile::intersectClipRect |
( |
long | num, |
|
|
short * | parms ) |
clipping region is the intersection of this region and the original region
Definition at line 663 of file qwmf.cpp.
◆ isEnhanced()
| bool QWinMetaFile::isEnhanced |
( |
void | | ) |
const |
|
inline |
- Returns
- true if the metafile is enhanced.
Definition at line 82 of file qwmf.h.
◆ isPlaceable()
| bool QWinMetaFile::isPlaceable |
( |
void | | ) |
const |
|
inline |
- Returns
- true if the metafile is placeable.
Definition at line 77 of file qwmf.h.
◆ lineTo()
| void QWinMetaFile::lineTo |
( |
long | num, |
|
|
short * | parms ) |
draw line to coord
Definition at line 461 of file qwmf.cpp.
◆ load() [1/2]
| bool QWinMetaFile::load |
( |
const TQString & | fileName | ) |
|
|
virtual |
Load WMF file.
- Returns
- true on success.
Definition at line 135 of file qwmf.cpp.
◆ load() [2/2]
| bool QWinMetaFile::load |
( |
TQBuffer & | buffer | ) |
|
|
virtual |
◆ moveTo()
| void QWinMetaFile::moveTo |
( |
long | num, |
|
|
short * | parms ) |
move pen to coord
Definition at line 468 of file qwmf.cpp.
◆ noop()
| void QWinMetaFile::noop |
( |
long | , |
|
|
short * | ) |
◆ paint()
| bool QWinMetaFile::paint |
( |
const TQPaintDevice * | target, |
|
|
bool | absolute = false ) |
|
virtual |
Paint metafile to given paint-device using absolute or relative coordinate.
- absolute coord. Reset the world transfomation Matrix
- relative coord. Use the existing world transfomation Matrix
- Returns
- true on success.
Definition at line 334 of file qwmf.cpp.
◆ pie()
| void QWinMetaFile::pie |
( |
long | num, |
|
|
short * | parms ) |
◆ pointArray()
| TQPointArray * QWinMetaFile::pointArray |
( |
short | num, |
|
|
short * | parms ) |
|
protected |
Fills given parms into mPoints.
Definition at line 1079 of file qwmf.cpp.
◆ polygon()
| void QWinMetaFile::polygon |
( |
long | num, |
|
|
short * | parms ) |
◆ polyline()
| void QWinMetaFile::polyline |
( |
long | num, |
|
|
short * | parms ) |
draw series of lines
Definition at line 535 of file qwmf.cpp.
◆ polyPolygon()
| void QWinMetaFile::polyPolygon |
( |
long | num, |
|
|
short * | parms ) |
draw a list of polygons
Definition at line 492 of file qwmf.cpp.
◆ rectangle()
| void QWinMetaFile::rectangle |
( |
long | num, |
|
|
short * | parms ) |
draw a rectangle
Definition at line 545 of file qwmf.cpp.
◆ restoreDC()
| void QWinMetaFile::restoreDC |
( |
long | num, |
|
|
short * | parms ) |
restore device context
Definition at line 655 of file qwmf.cpp.
◆ roundRect()
| void QWinMetaFile::roundRect |
( |
long | num, |
|
|
short * | parms ) |
draw round rectangle
Definition at line 552 of file qwmf.cpp.
◆ saveDC()
| void QWinMetaFile::saveDC |
( |
long | num, |
|
|
short * | parms ) |
save device context
Definition at line 648 of file qwmf.cpp.
◆ selectObject()
| void QWinMetaFile::selectObject |
( |
long | num, |
|
|
short * | parms ) |
Activate object handle.
Definition at line 902 of file qwmf.cpp.
◆ setBkColor()
| void QWinMetaFile::setBkColor |
( |
long | num, |
|
|
short * | parms ) |
set background pen color
Definition at line 616 of file qwmf.cpp.
◆ setBkMode()
| void QWinMetaFile::setBkMode |
( |
long | num, |
|
|
short * | parms ) |
set background pen mode
Definition at line 623 of file qwmf.cpp.
◆ setPixel()
| void QWinMetaFile::setPixel |
( |
long | num, |
|
|
short * | parms ) |
◆ setPolyFillMode()
| void QWinMetaFile::setPolyFillMode |
( |
long | num, |
|
|
short * | parms ) |
set polygon fill mode
Definition at line 609 of file qwmf.cpp.
◆ setRop()
| void QWinMetaFile::setRop |
( |
long | num, |
|
|
short * | parms ) |
Set raster operation mode.
Definition at line 641 of file qwmf.cpp.
◆ setTextAlign()
| void QWinMetaFile::setTextAlign |
( |
long | num, |
|
|
short * | parms ) |
set text alignment
Definition at line 706 of file qwmf.cpp.
◆ setTextColor()
| void QWinMetaFile::setTextColor |
( |
long | num, |
|
|
short * | parms ) |
set text color
Definition at line 699 of file qwmf.cpp.
◆ setWindowExt()
| void QWinMetaFile::setWindowExt |
( |
long | num, |
|
|
short * | parms ) |
set window extents
Definition at line 426 of file qwmf.cpp.
◆ setWindowOrg()
| void QWinMetaFile::setWindowOrg |
( |
long | num, |
|
|
short * | parms ) |
set window origin
Definition at line 407 of file qwmf.cpp.
◆ stretchDib()
| void QWinMetaFile::stretchDib |
( |
long | num, |
|
|
short * | parms ) |
◆ textOut()
| void QWinMetaFile::textOut |
( |
long | num, |
|
|
short * | parms ) |
◆ toDWord()
| unsigned int QWinMetaFile::toDWord |
( |
short * | parm | ) |
|
|
protected |
Converts two parameters to long.
Definition at line 1092 of file qwmf.cpp.
◆ winToTQtRaster() [1/2]
| TQt::RasterOp QWinMetaFile::winToTQtRaster |
( |
long | parm | ) |
const |
|
protected |
◆ winToTQtRaster() [2/2]
| TQt::RasterOp QWinMetaFile::winToTQtRaster |
( |
short | parm | ) |
const |
|
protected |
Convert windows rasterOp in TQt rasterOp.
Definition at line 1167 of file qwmf.cpp.
◆ xyToAngle()
| void QWinMetaFile::xyToAngle |
( |
int | xStart, |
|
|
int | yStart, |
|
|
int | xEnd, |
|
|
int | yEnd, |
|
|
int & | angle, |
|
|
int & | aLength ) |
|
protected |
Convert (x1,y1) and (x2, y2) positions in angle and angleLength.
Definition at line 1129 of file qwmf.cpp.
◆ mAbsoluteCoord
| bool QWinMetaFile::mAbsoluteCoord |
|
protected |
◆ mBBox
| TQRect QWinMetaFile::mBBox |
|
protected |
◆ mDpi
◆ mFirstCmd
| WmfCmd* QWinMetaFile::mFirstCmd |
|
protected |
◆ mHeaderBoundingBox
| TQRect QWinMetaFile::mHeaderBoundingBox |
|
protected |
◆ mInternalWorldMatrix
| TQWMatrix QWinMetaFile::mInternalWorldMatrix |
|
protected |
◆ mIsEnhanced
| bool QWinMetaFile::mIsEnhanced |
|
protected |
◆ mIsPlaceable
| bool QWinMetaFile::mIsPlaceable |
|
protected |
◆ mObjHandleTab
| WinObjHandle** QWinMetaFile::mObjHandleTab |
|
protected |
◆ mPainter
| TQPainter QWinMetaFile::mPainter |
|
protected |
◆ mPoints
| TQPointArray QWinMetaFile::mPoints |
|
protected |
◆ mRotation
| int QWinMetaFile::mRotation |
|
protected |
◆ mTextAlign
| int QWinMetaFile::mTextAlign |
|
protected |
◆ mTextColor
| TQColor QWinMetaFile::mTextColor |
|
protected |
◆ mValid
| bool QWinMetaFile::mValid |
|
protected |
◆ mWinding
| bool QWinMetaFile::mWinding |
|
protected |
The documentation for this class was generated from the following files:
|