|
| | PdfPainterMM () |
| |
| void | SetStrokeWidthMM (long lWidth) |
| |
| void | DrawLineMM (long lStartX, long lStartY, long lEndX, long lEndY) |
| |
| void | DrawRectMM (long lX, long lY, long lWidth, long lHeight) |
| |
| void | FillRectMM (long lX, long lY, long lWidth, long lHeight) |
| |
| void | DrawEllipseMM (long lX, long lY, long lWidth, long lHeight) |
| |
| void | FillEllipseMM (long lX, long lY, long lWidth, long lHeight) |
| |
| void | DrawTextMM (long lX, long lY, const PdfString &sText) |
| |
| void | DrawTextMM (long lX, long lY, const PdfString &sText, long lLen) |
| |
| void | DrawImageMM (long lX, long lY, PdfImage *pObject, double dScaleX=1.0, double dScaleY=1.0) |
| |
| void | DrawXObjectMM (long lX, long lY, PdfXObject *pObject, double dScaleX=1.0, double dScaleY=1.0) |
| |
| void | LineToMM (long lX, long lY) |
| |
| void | MoveToMM (long lX, long lY) |
| |
| | PdfPainter () |
| |
| void | SetPage (PdfCanvas *pPage) |
| |
| const PdfCanvas * | GetPage () const |
| |
| void | FinishPage () |
| |
| void | SetStrokingGray (double g) |
| |
| void | SetGray (double g) |
| |
| void | SetStrokingColor (double r, double g, double b) |
| |
| void | SetColor (double r, double g, double b) |
| |
| void | SetStrokingColorCMYK (double c, double m, double y, double k) |
| |
| void | SetColorCMYK (double c, double m, double y, double k) |
| |
| void | SetStrokingShadingPattern (const PdfShadingPattern &rPattern) |
| |
| void | SetShadingPattern (const PdfShadingPattern &rPattern) |
| |
| void | SetStrokingColor (const PdfColor &rColor) |
| |
| void | SetColor (const PdfColor &rColor) |
| |
| void | SetStrokeWidth (double dWidth) |
| |
| void | SetStrokeStyle (EPdfStrokeStyle eStyle, const char *pszCustom=NULL) |
| |
| void | SetLineCapStyle (EPdfLineCapStyle eCapStyle) |
| |
| void | SetLineJoinStyle (EPdfLineJoinStyle eJoinStyle) |
| |
| void | SetFont (PdfFont *pFont) |
| |
| PdfFont * | GetFont () const |
| |
| void | SetClipRect (double dX, double dY, double dWidth, double dHeight) |
| |
| void | SetClipRect (const PdfRect &rRect) |
| |
| void | DrawLine (double dStartX, double dStartY, double dEndX, double dEndY) |
| |
| void | DrawRect (double dX, double dY, double dWidth, double dHeight, double dRoundX=0.0, double dRoundY=0.0) |
| |
| void | DrawRect (const PdfRect &rRect, double dRoundX=0.0, double dRoundY=0.0) |
| |
| void | FillRect (double dX, double dY, double dWidth, double dHeight, double dRoundX=0.0, double dRoundY=0.0) |
| |
| void | FillRect (const PdfRect &rRect, double dRoundX=0.0, double dRoundY=0.0) |
| |
| void | DrawEllipse (double dX, double dY, double dWidth, double dHeight) |
| |
| void | FillEllipse (double dX, double dY, double dWidth, double dHeight) |
| |
| void | DrawCircle (double dX, double dY, double dRadius) |
| |
| void | FillCircle (double dX, double dY, double dRadius) |
| |
| void | DrawText (double dX, double dY, const PdfString &sText) |
| |
| void | DrawText (double dX, double dY, const PdfString &sText, long lLen) |
| |
| void | DrawMultiLineText (double dX, double dY, double dWidth, double dHeight, const PdfString &rsText, EPdfAlignment eAlignment=ePdfAlignment_Left, EPdfVerticalAlignment eVertical=ePdfVerticalAlignment_Top) |
| |
| void | DrawMultiLineText (const PdfRect &rRect, const PdfString &rsText, EPdfAlignment eAlignment=ePdfAlignment_Left, EPdfVerticalAlignment eVertical=ePdfVerticalAlignment_Top) |
| |
| std::vector< TLineElement > | GetMultiLineTextAsLines (double dWidth, const PdfString &rsText) |
| |
| void | DrawTextAligned (double dX, double dY, double dWidth, const PdfString &rsText, EPdfAlignment eAlignment) |
| |
| void | BeginText (double dX, double dY) |
| |
| void | AddText (const PdfString &sText) |
| |
| void | AddText (const PdfString &sText, pdf_long lStringLen) |
| |
| void | MoveTextPos (double dX, double dY) |
| |
| void | EndText () |
| |
| void | DrawGlyph (PdfMemDocument *pDocument, double dX, double dY, const char *pszGlyphname) |
| |
| void | DrawImage (double dX, double dY, PdfImage *pObject, double dScaleX=1.0, double dScaleY=1.0) |
| |
| void | DrawXObject (double dX, double dY, PdfXObject *pObject, double dScaleX=1.0, double dScaleY=1.0) |
| |
| void | ClosePath () |
| |
| void | LineTo (double dX, double dY) |
| |
| void | MoveTo (double dX, double dY) |
| |
| void | CubicBezierTo (double dX1, double dY1, double dX2, double dY2, double dX3, double dY3) |
| |
| void | HorizonalLineTo (double dX) |
| |
| void | VerticalLineTo (double dY) |
| |
| void | SmoothCurveTo (double dX2, double dY2, double dX3, double dY3) |
| |
| void | QuadCurveTo (double dX1, double dY1, double dX3, double dY3) |
| |
| void | SmoothQuadCurveTo (double dX3, double dY3) |
| |
| void | ArcTo (double dX, double dY, double dRadiusX, double dRadiusY, double dRotation, bool bLarge, bool bSweep) |
| |
| void | Close () |
| |
| void | Stroke () |
| |
| void | Fill () |
| |
| void | Clip (bool useEvenOddRule=false) |
| |
| void | Save () |
| |
| void | Restore () |
| |
| void | SetTransformationMatrix (double a, double b, double c, double d, double e, double f) |
| |
| void | SetExtGState (PdfExtGState *inGState) |
| |
| void | SetRenderingIntent (char *intent) |
| |
| void | SetTabWidth (unsigned short nTabWidth) |
| |
| unsigned short | GetTabWidth () const |
| |
| void | SetPrecision (unsigned short inPrec) |
| |
| unsigned short | GetPrecision () const |
| |
This class provides an easy to use painter object which allows you to draw on a PDF page object.
During all drawing operations, you are still able to access the stream of the object you are drawing on directly.
This painter takes all coordinates in 1/1000th mm instead of PDF units.
Developer note: we use ownership rather than inheritance here, so as to use the same methods names a PdfPainter AND avoid compiler confusion on picking the right one.
- See also
- PdfPainter