resvg

package module
v0.1.1-0...-84a3910 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderImageFromString

func RenderImageFromString(svg string, option *Options) (img image.Image, err error)

func RenderImageWithIDFromFile

func RenderImageWithIDFromFile(svg, id string, option *Options) (img image.Image, err error)

func RenderPNGFromFile

func RenderPNGFromFile(svgpath, pngpath string, option *Options) error

func RenderPNGFromString

func RenderPNGFromString(svg, pngpath string, option *Options) error

Types

type Options

type Options struct {
	Width           int
	Height          int
	DPI             float64
	BackgroundColor string
}

func (*Options) ResvgBackgroundColor

func (o *Options) ResvgBackgroundColor() C.struct_resvg_color

func (*Options) ResvgOption

func (o *Options) ResvgOption() *C.struct_resvg_options

Jump to

Keyboard shortcuts

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