Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeFile ¶
DecodeFile decodes an SVG file into a pixel buffer. Nested image references are resolved relative to the SVG's directory.
Types ¶
type DecodeFileOptions ¶
type DecodeFileOptions struct {
TextFace *TextFace
// DecodeImage overrides nested <image href="..."> loading.
// If nil, nested images are decoded recursively by extension.
DecodeImage func(path string, reqSize int) (*core.Buffer, error)
}
DecodeFileOptions controls high-level SVG file decoding behavior.
Click to show internal directories.
Click to hide internal directories.