lib
QWinMetaFile Class Reference
#include <qwmf.h>
Detailed Description
QWinMetaFile is a WMF viewer based on QT toolkit How to use QWinMetaFile :.
include "qwmf.h" QWinMetaFile wmf; QPicture pic; // or QImage pic; if ( wmf.load( filename ) wmf.paint( &pic );
Definition at line 52 of file qwmf.h.
Public Member Functions | |
| QWinMetaFile () | |
| virtual | ~QWinMetaFile () |
| virtual bool | load (const QString &fileName) |
| virtual bool | load (QBuffer &buffer) |
| virtual bool | paint (const QPaintDevice *target, bool absolute=false) |
| bool | isPlaceable (void) const |
| bool | isEnhanced (void) const |
| QRect | 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 |
Protected Member Functions | |
| unsigned short | calcCheckSum (WmfPlaceableHeader *) |
| virtual int | findFunc (unsigned short aFunc) const |
| QPointArray * | pointArray (short num, short *parms) |
| QColor | color (short *parm) |
| unsigned int | toDWord (short *parm) |
| void | xyToAngle (int xStart, int yStart, int xEnd, int yEnd, int &angle, int &aLength) |
| void | addHandle (WinObjHandle *) |
| void | deleteHandle (int) |
| Qt::RasterOp | winToQtRaster (short parm) const |
| Qt::RasterOp | winToQtRaster (long parm) const |
| bool | dibToBmp (QImage &bmp, const char *dib, long size) |
Protected Attributes | |
| QPainter | mPainter |
| bool | mIsPlaceable |
| bool | mIsEnhanced |
| bool | mValid |
| bool | mAbsoluteCoord |
| QWMatrix | mInternalWorldMatrix |
| QRect | mHeaderBoundingBox |
| QRect | mBBox |
| QColor | mTextColor |
| int | mTextAlign |
| int | mRotation |
| bool | mWinding |
| WmfCmd * | mFirstCmd |
| WinObjHandle ** | mObjHandleTab |
| QPointArray | mPoints |
| int | mDpi |
Member Function Documentation
|
|
Handle win-object-handles.
|
|
||||||||||||
|
draw arc
|
|
|
|
|
|
Calculate header checksum.
|
|
||||||||||||
|
draw chord
|
|
|
Returns color given by the two parameters.
|
|
||||||||||||
|
create a logical brush
|
|
||||||||||||
|
create an empty object in the object list
|
|
||||||||||||
|
create a logical font
|
|
||||||||||||
|
create a logical pen
|
|
||||||||||||
|
Free object handle.
|
|
||||||||||||
|
copies a DIB into a dest location
|
|
||||||||||||
|
create a pattern brush
|
|
||||||||||||
|
stretches a DIB into a dest location
|
|
||||||||||||||||
|
Converts DIB to BMP.
|
|
|
Resolution of the image in dots per inch.
|
|
||||||||||||
|
draw ellipse
|
|
||||||||||||
|
end of meta file
|
|
||||||||||||
|
delete a clipping rectangle of the original region
|
|
|
Find function in metafunc table by metafile-function. Returns index or -1 if not found. |
|
||||||||||||
|
clipping region is the intersection of this region and the original region
|
|
|
|
|
|
|
|
||||||||||||
|
draw line to coord
|
|
|
Load WMF file.
|
|
||||||||||||
|
move pen to coord
|
|
||||||||||||
|
nothing to do
|
|
||||||||||||
|
Paint metafile to given paint-device using absolute or relative coordinate.
|
|
||||||||||||
|
draw pie
|
|
||||||||||||
|
Fills given parms into mPoints.
|
|
||||||||||||
|
draw polygon
|
|
||||||||||||
|
draw series of lines
|
|
||||||||||||
|
draw a list of polygons
|
|
||||||||||||
|
draw a rectangle
|
|
||||||||||||
|
restore device context
|
|
||||||||||||
|
draw round rectangle
|
|
||||||||||||
|
save device context
|
|
||||||||||||
|
Activate object handle.
|
|
||||||||||||
|
set background pen color
|
|
||||||||||||
|
set background pen mode
|
|
||||||||||||
|
set a pixel
|
|
||||||||||||
|
set polygon fill mode
|
|
||||||||||||
|
Set raster operation mode.
|
|
||||||||||||
|
set text alignment
|
|
||||||||||||
|
set text color
|
|
||||||||||||
|
set window extents
|
|
||||||||||||
|
set window origin
|
|
||||||||||||
|
draw text
|
|
|
Converts two parameters to long.
|
|
|
Convert windows rasterOp in QT rasterOp.
|
|
||||||||||||||||||||||||||||
|
Convert (x1,y1) and (x2, y2) positions in angle and angleLength.
|
The documentation for this class was generated from the following files:

