#include <PdfPainterMM.h>
Inheritance diagram for PoDoFo::PdfPainterMM:

Public Member Functions | |
| 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) |
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.
| PoDoFo::PdfPainterMM::PdfPainterMM | ( | ) | [inline] |
Create a new PdfPainterMM object.
| void PoDoFo::PdfPainterMM::DrawEllipseMM | ( | long | lX, | |
| long | lY, | |||
| long | lWidth, | |||
| long | lHeight | |||
| ) | [inline] |
Draw an ellipse with the current stroking settings
| lX | x coordinate of the ellipse (left coordinate) | |
| lY | y coordinate of the ellipse (top coordinate) | |
| lWidth | width of the ellipse | |
| lHeight | absolute height of the ellipse |
| void PoDoFo::PdfPainterMM::DrawImageMM | ( | long | lX, | |
| long | lY, | |||
| PdfImage * | pObject, | |||
| double | dScaleX = 1.0, |
|||
| double | dScaleY = 1.0 | |||
| ) | [inline] |
Draw an image on the current page.
| lX | the x coordinate (bottom left position of the image) | |
| lY | the y coordinate (bottom position of the image) | |
| pObject | an PdfXObject | |
| dScaleX | option scaling factor in x direction | |
| dScaleY | option scaling factor in y direction |
| void PoDoFo::PdfPainterMM::DrawLineMM | ( | long | lStartX, | |
| long | lStartY, | |||
| long | lEndX, | |||
| long | lEndY | |||
| ) | [inline] |
Draw a line with the current color and line settings.
| lStartX | x coordinate of the starting point | |
| lStartY | y coordinate of the starting point | |
| lEndX | x coordinate of the ending point | |
| lEndY | y coordinate of the ending point |
| void PoDoFo::PdfPainterMM::DrawRectMM | ( | long | lX, | |
| long | lY, | |||
| long | lWidth, | |||
| long | lHeight | |||
| ) | [inline] |
Draw a rectangle with the current stroking settings
| lX | x coordinate of the rectangle | |
| lY | y coordinate of the rectangle | |
| lWidth | width of the rectangle | |
| lHeight | absolute height of the rectangle |
| void PoDoFo::PdfPainterMM::DrawTextMM | ( | long | lX, | |
| long | lY, | |||
| const PdfString & | sText, | |||
| long | lLen | |||
| ) | [inline] |
Draw a text string on a page using a given font object. You have to call SetFont before calling this function.
| lX | the x coordinate | |
| lY | the y coordinate | |
| sText | the text string which should be printed (is not allowed to be NULL!) | |
| lLen | draw only lLen characters of pszText |
| void PoDoFo::PdfPainterMM::DrawTextMM | ( | long | lX, | |
| long | lY, | |||
| const PdfString & | sText | |||
| ) | [inline] |
Draw a text string on a page using a given font object. You have to call SetFont before calling this function.
| lX | the x coordinate | |
| lY | the y coordinate | |
| sText | the text string which should be printed |
| void PoDoFo::PdfPainterMM::DrawXObjectMM | ( | long | lX, | |
| long | lY, | |||
| PdfXObject * | pObject, | |||
| double | dScaleX = 1.0, |
|||
| double | dScaleY = 1.0 | |||
| ) | [inline] |
Draw an XObject on the current page.
| lX | the x coordinate (bottom left position of the XObject) | |
| lY | the y coordinate (bottom position of the XObject) | |
| pObject | an PdfXObject | |
| dScaleX | option scaling factor in x direction | |
| dScaleY | option scaling factor in y direction |
| void PoDoFo::PdfPainterMM::FillEllipseMM | ( | long | lX, | |
| long | lY, | |||
| long | lWidth, | |||
| long | lHeight | |||
| ) | [inline] |
Fill an ellipse with the current fill settings
| lX | x coordinate of the ellipse (left coordinate) | |
| lY | y coordinate of the ellipse (top coordinate) | |
| lWidth | width of the ellipse | |
| lHeight | absolute height of the ellipse |
| void PoDoFo::PdfPainterMM::FillRectMM | ( | long | lX, | |
| long | lY, | |||
| long | lWidth, | |||
| long | lHeight | |||
| ) | [inline] |
Fill a rectangle with the current fill settings
| lX | x coordinate of the rectangle | |
| lY | y coordinate of the rectangle | |
| lWidth | width of the rectangle | |
| lHeight | absolute height of the rectangle |
| void PoDoFo::PdfPainterMM::LineToMM | ( | long | lX, | |
| long | lY | |||
| ) | [inline] |
Append a line segment to the current path. Matches the PDF 'l' operator. This function is useful to construct an own path for drawing or clipping.
| lX | x position | |
| lY | y position |
| void PoDoFo::PdfPainterMM::MoveToMM | ( | long | lX, | |
| long | lY | |||
| ) | [inline] |
Begin a new path. Matches the PDF 'm' operator. This function is useful to construct an own path for drawing or clipping.
| lX | x position | |
| lY | y position |
| void PoDoFo::PdfPainterMM::SetStrokeWidthMM | ( | long | lWidth | ) | [inline] |
Set the line width for all stroking operations.
| lWidth | in 1/1000th mm |
1.4.7