renderertest

package
v0.0.0-...-590b00d Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: LGPL-2.1 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderPreview

func RenderPreview(w canvas.Writer) error

RenderPreview is adapted from https://github.com/tdewolff/canvas/blob/master/examples/preview/main.go Copyright (c) 2015 Taco de Wolff MIT License

Types

type JPEGImage

type JPEGImage interface {
	image.Image
	JPEGBytes() []byte
}

JPEGImage gives access to the raw bytes

func NewJPEGImage

func NewJPEGImage(r io.Reader) (JPEGImage, error)

NewJPEGImage parses a reader to later give access to the JPEG raw bytes

type PNGImage

type PNGImage interface {
	image.Image
	PNGBytes() []byte
}

PNGImage gives access to the raw bytes

func NewPNGImage

func NewPNGImage(r io.Reader) (PNGImage, error)

NewPNGImage parses a reader to later give access to the PNG raw bytes

Jump to

Keyboard shortcuts

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