DPI is the nominal resolution of drawing in EPS.
const DPI = 72
type Canvas struct {
// contains filtered or unexported fields
}
func New(w, h vg.Length) *Canvas
New returns a new Canvas.
func NewTitle(w, h vg.Length, title string) *Canvas
NewTitle returns a new Canvas with the given title string.
func (c *Canvas) DrawImage(rect vg.Rectangle, img image.Image)
DrawImage implements the vg.Canvas.DrawImage method.
func (e *Canvas) Fill(path vg.Path)
func (e *Canvas) FillString(fnt font.Face, pt vg.Point, str string)
func (e *Canvas) Pop()
func (e *Canvas) Push()
func (e *Canvas) Rotate(r float64)
func (e *Canvas) Scale(x, y float64)
func (e *Canvas) SetColor(c color.Color)
func (e *Canvas) SetLineDash(dashes []vg.Length, o vg.Length)
func (e *Canvas) SetLineWidth(w vg.Length)
func (c *Canvas) Size() (w, h vg.Length)
func (e *Canvas) Stroke(path vg.Path)
func (e *Canvas) Translate(pt vg.Point)
func (e *Canvas) WriteTo(w io.Writer) (int64, error)
WriteTo writes the canvas to an io.Writer.