Documentation ¶
Overview ¶
The vgpdf implemens the vg.Canvas interface using gopdf (bitbucket.org/zombiezen/gopdf/pdf).
Index ¶
- type Canvas
- func (*Canvas) DPI() float64
- func (c *Canvas) Fill(p vg.Path)
- func (c *Canvas) FillString(fnt vg.Font, x, y vg.Length, str string)
- func (c *Canvas) Pop()
- func (c *Canvas) Push()
- func (c *Canvas) Rotate(r float64)
- func (c *Canvas) Scale(x float64, y float64)
- func (c *Canvas) SetColor(clr color.Color)
- func (c *Canvas) SetLineDash(dashes []vg.Length, offs vg.Length)
- func (c *Canvas) SetLineWidth(w vg.Length)
- func (c *Canvas) Size() (w, h vg.Length)
- func (c *Canvas) Stroke(p vg.Path)
- func (c *Canvas) Translate(x vg.Length, y vg.Length)
- func (c *Canvas) WriteTo(w io.Writer) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
Canvas implements the vg.Canvas interface, drawing to a PDF.
func (*Canvas) SetLineWidth ¶
Click to show internal directories.
Click to hide internal directories.