draw2dsvg/gc.go
func (gc *GraphicContext) DrawImage(image image.Image) {
	bounds := image.Bounds()

	svgImage := &Image{Href: imageToSvgHref(image)}
	svgImage.X = float64(bounds.Min.X)
	svgImage.Y = float64(bounds.Min.Y)
	svgImage.Width = toSvgLength(float64(bounds.Max.X - bounds.Min.X))
	svgImage.Height = toSvgLength(float64(bounds.Max.Y - bounds.Min.Y))
	gc.newGroup(0).Image = svgImage
}
func (gc *GraphicContext) DrawImage(image image.Image) {
	bounds := image.Bounds()

	svgImage := &Image{Href: imageToSvgHref(image)}
	svgImage.X = float64(bounds.Min.X)
	svgImage.Y = float64(bounds.Min.Y)
	svgImage.Width = toSvgLength(float64(bounds.Max.X - bounds.Min.X))
	svgImage.Height = toSvgLength(float64(bounds.Max.Y - bounds.Min.Y))
	gc.newGroup(0).Image = svgImage
}
// DrawImage draws the raster image in the current canvas