Documentation ¶
Index ¶
- Variables
- type Options
- type SVG
- func (r *SVG) AddClass(class string)
- func (r *SVG) Close() error
- func (r *SVG) RemoveClass(class string)
- func (r *SVG) RenderImage(img image.Image, m canvas.Matrix)
- func (r *SVG) RenderPath(path *canvas.Path, style canvas.Style, m canvas.Matrix)
- func (r *SVG) RenderText(text *canvas.Text, m canvas.Matrix)
- func (r *SVG) SetClass(classes ...string)
- func (r *SVG) SetImageEncoding(enc canvas.ImageEncoding)
- func (r *SVG) Size() (float64, float64)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = Options{ EmbedFonts: true, SubsetFonts: false, ImageEncoding: canvas.Lossless, }
Functions ¶
This section is empty.
Types ¶
type SVG ¶
type SVG struct {
// contains filtered or unexported fields
}
SVG is a scalable vector graphics renderer.
func (*SVG) RemoveClass ¶
RemoveClass removes a class from the class list.
func (*SVG) RenderImage ¶
RenderImage renders an image to the canvas using a transformation matrix.
func (*SVG) RenderPath ¶
func (r *SVG) RenderPath(path *canvas.Path, style canvas.Style, m canvas.Matrix)
RenderPath renders a path to the canvas using a style and a transformation matrix.
func (*SVG) RenderText ¶
func (r *SVG) RenderText(text *canvas.Text, m canvas.Matrix)
RenderText renders a text object to the canvas using a transformation matrix.
func (*SVG) SetImageEncoding ¶
func (r *SVG) SetImageEncoding(enc canvas.ImageEncoding)
SetImageEncoding sets the image encoding to Loss or Lossless.
Click to show internal directories.
Click to hide internal directories.