Documentation
¶
Index ¶
- type TeX
- func (r *TeX) Close() error
- func (r *TeX) Err() error
- func (r *TeX) RenderClippedImage(img image.Image, m canvas.Matrix, clip *canvas.Path)
- func (r *TeX) RenderClippedPath(path *canvas.Path, style canvas.Style, m canvas.Matrix, clip *canvas.Path)
- func (r *TeX) RenderClippedText(text *canvas.Text, m canvas.Matrix, clip *canvas.Path)
- func (r *TeX) RenderImage(img image.Image, m canvas.Matrix)
- func (r *TeX) RenderPath(path *canvas.Path, style canvas.Style, m canvas.Matrix)
- func (r *TeX) RenderText(text *canvas.Text, m canvas.Matrix)
- func (r *TeX) Size() (float64, float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TeX ¶
type TeX struct {
// contains filtered or unexported fields
}
TeX writes a PGF picture for pdfLaTeX or LuaLaTeX in PDF mode.
func (*TeX) RenderClippedImage ¶
RenderClippedImage uses the image-local, Y-up clip supplied by canvas.
func (*TeX) RenderClippedPath ¶
func (r *TeX) RenderClippedPath(path *canvas.Path, style canvas.Style, m canvas.Matrix, clip *canvas.Path)
RenderClippedPath preserves path-local clipping.
func (*TeX) RenderClippedText ¶
RenderClippedText clips outlined glyphs in text-local space.
func (*TeX) RenderImage ¶
RenderImage renders an image to the canvas using a transformation matrix.
func (*TeX) RenderPath ¶
RenderPath renders a path to the canvas using a style and a transformation matrix.
func (*TeX) RenderText ¶
RenderText renders a text object to the canvas using a transformation matrix.