avyos.dev/pkg/graphics/svg
package svg
Package Overview
No package-level documentation is provided.
| Export Group | Count |
|---|---|
| Constants | 0 |
| Variables | 1 |
| Functions | 0 |
| Types | 5 |
Variables
var (
ColorTransparent = core.ColorTransparent
NewBuffer = core.NewBuffer
)Types
Buffer
type Buffer = core.BufferFunctions
func Decode(path string, reqSize int, opts Options) (*Buffer, error)Decode decodes and rasterizes SVG using an in-tree parser/rasterizer.
Color
type Color = core.ColorOptions
type Options struct {
TextFace *TextFace
DecodeImage func(path string, reqSize int) (*Buffer, error)
}Rect
type Rect = core.RectTextFace
type TextFace struct {
Width int
Height int
Glyphs map[rune][]byte
}