diff --git a/resvg.go b/resvg.go index 4682b24..b735531 100644 --- a/resvg.go +++ b/resvg.go @@ -53,20 +53,7 @@ import ( "unsafe" ) -// Render renders svg data as a RGBA image. -func Render(data []byte, opts ...Option) (*image.RGBA, error) { - return New(opts...).Render(data) -} - -// Version returns the resvg version. -func Version() string { - v := C.version() - ver := C.GoString(v) - C.free(unsafe.Pointer(v)) - return ver -} - -// Resvg wraps the [resvg c-api]. +// Resvg wraps the [resvg c-api] to render svgs as standard a [image.RGBA]. // // [resvg c-api]: https://github.com/RazrFalcon/resvg type Resvg struct { @@ -430,6 +417,19 @@ func init() { image.RegisterFormat("svg", "