eps

package
v0.0.0-...-6d3a538 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Writer

func Writer(w io.Writer, c *canvas.Canvas) error

Writer writes the canvas as an EPS file. Be aware that EPS does not support transparency of colors.

Types

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

func New

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

New creates an encapsulated PostScript renderer.

func (*Renderer) RenderImage

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

func (*Renderer) RenderPath

func (r *Renderer) RenderPath(path *canvas.Path, style canvas.Style, m canvas.Matrix)

func (*Renderer) RenderText

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

func (*Renderer) Size

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

Jump to

Keyboard shortcuts

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