README ¶ gorsvg Go bindings for librsvg (incomplete) These are opinionated bindings and they expose an API to render simple SVGs (like icons) and set user stylesheets for those SVGs (like symbolic icons) Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Decode(reader io.Reader, w, h int) (image.Image, error) func DecodeWithCSS(reader io.Reader, w, h int, css string) (image.Image, error) func DecodeWithColor(reader io.Reader, w, h int, c color.Color) (image.Image, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Decode ¶ func Decode(reader io.Reader, w, h int) (image.Image, error) Render a simple a svg to an image.Image func DecodeWithCSS ¶ func DecodeWithCSS(reader io.Reader, w, h int, css string) (image.Image, error) For applying custom CSS func DecodeWithColor ¶ func DecodeWithColor(reader io.Reader, w, h int, c color.Color) (image.Image, error) For tinting symbolic icons Types ¶ This section is empty. Source Files ¶ View all Source files api.go Click to show internal directories. Click to hide internal directories.