plot: github.com/sksullivan/plot/vg/vgpdf Index | Files

package vgpdf

import "github.com/sksullivan/plot/vg/vgpdf"

Package vgpdf implements the vg.Canvas interface using gopdf (bitbucket.org/zombiezen/gopdf/pdf).

Index

Package Files

vgpdf.go

type Canvas Uses

type Canvas struct {
    // contains filtered or unexported fields
}

Canvas implements the vg.Canvas interface, drawing to a PDF.

func New Uses

func New(w, h vg.Length) *Canvas

New creates a new PDF Canvas.

func (*Canvas) DPI Uses

func (*Canvas) DPI() float64

func (*Canvas) Fill Uses

func (c *Canvas) Fill(p vg.Path)

func (*Canvas) FillString Uses

func (c *Canvas) FillString(fnt vg.Font, x, y vg.Length, str string)

func (*Canvas) Pop Uses

func (c *Canvas) Pop()

func (*Canvas) Push Uses

func (c *Canvas) Push()

func (*Canvas) Rotate Uses

func (c *Canvas) Rotate(r float64)

func (*Canvas) Scale Uses

func (c *Canvas) Scale(x float64, y float64)

func (*Canvas) SetColor Uses

func (c *Canvas) SetColor(clr color.Color)

func (*Canvas) SetLineDash Uses

func (c *Canvas) SetLineDash(dashes []vg.Length, offs vg.Length)

func (*Canvas) SetLineWidth Uses

func (c *Canvas) SetLineWidth(w vg.Length)

func (*Canvas) Size Uses

func (c *Canvas) Size() (w, h vg.Length)

func (*Canvas) Stroke Uses

func (c *Canvas) Stroke(p vg.Path)

func (*Canvas) Translate Uses

func (c *Canvas) Translate(x vg.Length, y vg.Length)

func (*Canvas) WriteTo Uses

func (c *Canvas) WriteTo(w io.Writer) (int64, error)

WriteTo writes the Canvas to an io.Writer. After calling Write, the canvas is closed and may no longer be used for drawing.

Package vgpdf imports 7 packages (graph) and is imported by 1 packages. Updated 2016-08-04. Refresh now. Tools for package owners. This is a quick bug-fix fork (has fewer than three commits, and only during the week it was created).