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