tex

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 is a TeX/PGF renderer. Be aware that TeX/PGF does not support transparency of colors.

func New

func New(w io.Writer, width, height float64) *TeX

New returns a TeX/PGF renderer.

func (*TeX) Close

func (r *TeX) Close() error

Close finished and closes the TeX file.

func (*TeX) RenderImage

func (r *TeX) RenderImage(img image.Image, m canvas.Matrix)

RenderImage renders an image to the canvas using a transformation matrix.

func (*TeX) RenderPath

func (r *TeX) 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 (*TeX) RenderText

func (r *TeX) RenderText(text *canvas.Text, m canvas.Matrix)

RenderText renders a text object to the canvas using a transformation matrix.

func (*TeX) Size

func (r *TeX) Size() (float64, float64)

Size returns the size of the canvas in millimeters.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL