Versions in this module Expand all Collapse all v0 v0.1.8 Oct 31, 2026 v0.1.7 Oct 30, 2026 Changes in this version + func Decode(data []byte) (image.Image, error) + func IsSVG(format string, file models.StLoc) bool + type EncodedImage struct + Data []byte + Format string + func NewEncodedImage(format string, data []byte) *EncodedImage + func (e *EncodedImage) At(x, y int) color.Color + func (e *EncodedImage) Bounds() image.Rectangle + func (e *EncodedImage) CanvasImageOnce(build func() image.Image) image.Image + func (e *EncodedImage) ColorModel() color.Model + func (e *EncodedImage) Image() (image.Image, error) + func (e *EncodedImage) Weight() int64 + type Reader interface + Read func(name string) ([]byte, error) + type SVGParser func([]byte) (SVGScene, error) + type SVGScene interface + Height func() float64 + Rasterize func(resolution geom.Resolution) image.Image + RenderVector func(ctx any, matrix geom.Matrix) bool + Width func() float64 + func ParseSVG(data []byte, parse SVGParser) (SVGScene, error) + type Store struct + func (s *Store) Close() + func (s *Store) Image(key string, load func() (image.Image, error)) (image.Image, error) + func (s *Store) Load(file models.StLoc, format string, source Reader, parse SVGParser) (image.Image, error) + func (s *Store) LoadSVG(file models.StLoc, format string, source Reader, parse SVGParser) (SVGScene, error) + func (s *Store) SVG(key string, load func() ([]byte, error), parse SVGParser) (SVGScene, error)