Versions in this module Expand all Collapse all v0 v0.7.1 Jun 30, 2020 Changes in this version + const DefaultDPI + const DefaultHeight + const DefaultWidth + func UseBackgroundColor(c color.Color) option + func UseDPI(dpi int) option + func UseImage(img draw.Image) option + func UseImageWithContext(img draw.Image, ctx *gg.Context) option + func UseWH(w, h vg.Length) option + type Canvas struct + func New(w, h vg.Length) *Canvas + func NewWith(o ...option) *Canvas + func (c *Canvas) DPI() float64 + func (c *Canvas) DrawImage(rect vg.Rectangle, img image.Image) + func (c *Canvas) Fill(p vg.Path) + func (c *Canvas) FillString(font vg.Font, pt vg.Point, str string) + func (c *Canvas) Image() draw.Image + func (c *Canvas) Pop() + func (c *Canvas) Push() + func (c *Canvas) Rotate(t float64) + func (c *Canvas) Scale(x, y float64) + func (c *Canvas) SetColor(clr color.Color) + func (c *Canvas) SetLineDash(ds []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(pt vg.Point) + type JpegCanvas struct + func (c JpegCanvas) WriteTo(w io.Writer) (int64, error) + type PngCanvas struct + func (c PngCanvas) WriteTo(w io.Writer) (int64, error) + type TiffCanvas struct + func (c TiffCanvas) WriteTo(w io.Writer) (int64, error)