???
This commit is contained in:
parent
01983f4e86
commit
9a5138b21d
17 changed files with 477 additions and 308 deletions
|
|
@ -24,6 +24,9 @@ type Renderer interface {
|
|||
// SetStrokeWidth sets the stroke width.
|
||||
SetStrokeWidth(width float64)
|
||||
|
||||
// SetStrokeDashArray sets the stroke dash array.
|
||||
SetStrokeDashArray(dashArray []float64)
|
||||
|
||||
// MoveTo moves the cursor to a given point.
|
||||
MoveTo(x, y int)
|
||||
|
||||
|
|
@ -59,7 +62,7 @@ type Renderer interface {
|
|||
Text(body string, x, y int)
|
||||
|
||||
// MeasureText measures text.
|
||||
MeasureText(body string) (width int, height int)
|
||||
MeasureText(body string) Box
|
||||
|
||||
// Save writes the image to the given writer.
|
||||
Save(w io.Writer) error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue