DOC-METHODS
method TextLeading
method TextLeading() returns MuText line height
method SetStrokeGray
method SetStrokeGray(
$level
) returns MuSet the stroking colour space to DeviceGray and set the gray level to use for stroking operations, between 0.0 (black) and 1.0 (white).
method SetFillGray
method SetFillGray(
$level
) returns MuSame as G but used for non-stroking operations.
method SetStrokeRGB
method SetStrokeRGB(
$r,
$g,
$b
) returns MuSet the stroking colour space to DeviceRGB and set the colour to use for stroking operations. Each operand is a number between 0.0 (minimum intensity) and 1.0 (maximum intensity).
method SetFillRGB
method SetFillRGB(
$r,
$g,
$b
) returns MuSame as RG but used for non-stroking operations.
method Save
method Save() returns MuSave the current graphics state on the graphics state stack
method Restore
method Restore() returns MuRestore the graphics state by removing the most recently saved state from the stack and making it the current state.
method SetLineWidth
method SetLineWidth(
$width
) returns MuSet the line width in the graphics state
method SetLineCap
method SetLineCap(
$cap-style
) returns MuSet the line cap style in the graphics state (see LineCap enum)
method SetLineJoin
method SetLineJoin(
$join-style
) returns MuSet the line join style in the graphics state (see LineJoin enum)
method SetMiterLimit
method SetMiterLimit(
$ratio
) returns MuSet the miter limit in the graphics state
method BeginText
method BeginText() returns MuBegin a text object, initializing $.TextMatrix, to the identity matrix. Text objects cannot be nested.
method EndText
method EndText() returns MuEnd a text object, discarding the text matrix.
method TextMove
method TextMove(
$tx,
$ty
) returns MuMove to the start of the next line, offset from the start of the current line by (tx, ty); where tx and ty are expressed in unscaled text space units.
method TextMoveSet
method TextMoveSet(
$tx,
$ty
) returns MuMove to the start of the next line, offset from the start of the current line by (tx, ty). Set $.TextLeading to ty.
method TextNextLine
method TextNextLine() returns MuMove to the start of the next line
method ShowText
method ShowText(
$string
) returns MuShow a text string
method MoveShowText
method MoveShowText(
$string
) returns MuMove to the next line and show a text string.
method MoveSetShowText
method MoveSetShowText(
$aw,
$ac,
$string
) returns MuMove to the next line and show a text string, after setting .CharSpacing to ac
method MoveTo
method MoveTo(
$x,
$y
) returns MuBegin a new sub-path by moving the current point to coordinates (x, y), omitting any connecting line segment. If the previous path construction operator in the current path was also m, the new m overrides it.
method LineTo
method LineTo(
$x,
$y
) returns MuAppend a straight line segment from the current point to the point (x, y). The new current point is (x, y).
method CurveTo
method CurveTo(
$x1,
$y1,
$x2,
$y2,
$x3,
$y3
) returns MuAppend a cubic Bézier curve to the current path. The curve extends from the current point to the poit (x3, y3), using (x1, y1) and (x2, y2) as the Bézier control points. The new current point is (x3, y3).
method ClosePath
method ClosePath() returns MuClose the current sub-path by appending a straight line segment from the current point to the starting point of the sub-path.
method Rectangle
method Rectangle(
$x,
$y,
$width,
$Height
) returns MuAppend a rectangle to the current path as a complete sub-path, with lower-left corner (x, y) and dimensions width and height.
method Stroke
method Stroke() returns MuStroke the path.
method CloseStroke
method CloseStroke() returns MuClose and stroke the path. Same as: .Stroke
method Fill
method Fill() returns MuFill the path, using the nonzero winding number rule to determine the region. Any open sub-paths are implicitly closed before being filled.
method FillStroke
method FillStroke() returns MuFill and then stroke the path, using the nonzero winding number rule to determine the region to fill.
method CloseFillStroke
method CloseFillStroke() returns MuClose, fill, and then stroke the path, using the nonzero winding number rule to determine the region to fill.
method Clip
method Clip() returns MuModify the current clipping path by intersecting it with the current path, using the nonzero winding number rule to determine which regions lie inside the clipping path.