Documentation
¶
Index ¶
- Variables
- type Format
- type Options
- type PS
- func (r *PS) Close() error
- func (r *PS) Err() error
- func (r *PS) NewPage(width, height float64) error
- func (r *PS) RenderClippedImage(img image.Image, m canvas.Matrix, clip *canvas.Path)
- func (r *PS) RenderClippedPath(path *canvas.Path, style canvas.Style, m canvas.Matrix, clip *canvas.Path)
- func (r *PS) RenderClippedText(text *canvas.Text, m canvas.Matrix, clip *canvas.Path)
- func (r *PS) RenderImage(img image.Image, m canvas.Matrix)
- func (r *PS) RenderPath(path *canvas.Path, style canvas.Style, m canvas.Matrix)
- func (r *PS) RenderText(text *canvas.Text, m canvas.Matrix)
- func (r *PS) Size() (float64, float64)
Constants ¶
This section is empty.
Variables ¶
var DefaultOptions = Options{}
Functions ¶
This section is empty.
Types ¶
type PS ¶
type PS struct {
// contains filtered or unexported fields
}
PS is an PostScript renderer. Be aware that PostScript does not support transparency of colors.
func (*PS) NewPage ¶
NewPage finishes the previous page and starts a page with millimeter dimensions.
func (*PS) RenderClippedImage ¶
RenderClippedImage uses the image-local, Y-up clip supplied by canvas.
func (*PS) RenderClippedPath ¶
func (r *PS) RenderClippedPath(path *canvas.Path, style canvas.Style, m canvas.Matrix, clip *canvas.Path)
RenderClippedPath preserves path-local clipping without intersecting outlines.
func (*PS) RenderClippedText ¶
RenderClippedText preserves text-local clipping around glyph outlines.
func (*PS) RenderImage ¶
RenderImage renders an image to the canvas using a transformation matrix.
func (*PS) RenderPath ¶
RenderPath renders a path to the canvas using a style and a transformation matrix.
func (*PS) RenderText ¶
RenderText renders a text object to the canvas using a transformation matrix.