MCPcopy Index your code
hub / github.com/gonum/plot / DrawImage

Method DrawImage

vg/tee.go:123–127  ·  view source on GitHub ↗

DrawImage draws the image, scaled to fit the destination rectangle.

(rect Rectangle, img image.Image)

Source from the content-addressed store, hash-verified

121// DrawImage draws the image, scaled to fit
122// the destination rectangle.
123func (tee teeCanvas) DrawImage(rect Rectangle, img image.Image) {
124 for _, c := range tee.cs {
125 c.DrawImage(rect, img)
126 }
127}
128
129var _ Canvas = (*teeCanvas)(nil)

Callers

nothing calls this directly

Calls 1

DrawImageMethod · 0.65

Tested by

no test coverage detected