Undocumented in source.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Start a new page, finish the previous one.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Restore the graphical contect: transformation matrices.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Undocumented in source. Be warned that the author may not have intended to support it.
Number of units in a page. Return: Page width in millimeters.
Number of units in a page. Return: Page height in millimeters.
Push state on state stack. What this states contains: - transformation matrices
Pop state stack and restore state
Start a new page, finish the previous one. This invalidates any transformation. The origin (0, 0) becomes again the top-left point of each page.
Changes the transformation matrix to apply a scaling transformation with the given characteristics.
Changes the transformation matrix to apply a translation transformation with the given characteristics.
Changes the transformation matrix to apply a rotation transformation with the given characteristics. The angle is in radians, the direction is clockwise. Params: angle The rotation angle, in radians.
Draws an image at the given position.
Draws an image at the given position, with the given width and height. Both width and height must be provided.
Changes the current fill brush. Params: color Any HTML color string.
Changes the current stroke brush. Params: color Any HTML color string.
Undocumented in source.
Draw filled text.
The context always has a current default path. There is only one current path, it is not part of the drawing state. Resets the current path, and move the cursor to (x, y).
Change the width of a line. The whole path has the same line width.
Add a subpath forming a line. Its exact width is set when the path is drawn with fill, stroke or fillAndStroke.
Fills the subpaths of the current path or the given path with the current fill style. Uses the last set fill style, line width for the whole path.
Strokes the subpaths of the current path or the given path with the current stroke style. Uses the last set fill style, line width for the whole path.
Both fills and strokes the subpaths of the current path, in a more efficient way than calling fill and stroke separately. Uses the last set fill style, line width for the whole path.
Close the path, returning to the initial first point. TODO: specify exactly what it does.
Changes font face (default = Helvetica)
Changes font weight (Default = FontWeight.normal)
Changes font style (default = FontStyle.normal)
Changes font size in points (default = 11pt) Warning: not millimeters.
Changes text alignment (default = TextAlign.start)
Changes text baseline (default = TextBaseline.alphabetic)
Returns a TextMetrics struct that contains information about the measured text (such as its width, for example).
Renders 2D commands in a SVG file. For comparisons between PDF and SVG.