This commit is contained in:
2024-08-20 10:07:01 +03:00
parent d4aec6bcaf
commit 73d114ef5b
4 changed files with 7 additions and 2 deletions

View File

@@ -10,6 +10,8 @@ type rescaled struct {
scale int
}
func Render(
// ColorModel implements image.Image interface
func (r rescaled) ColorModel() color.Model {
return r.src.ColorModel()
@@ -43,4 +45,5 @@ func Scale(img image.Image, scale int) image.Image {
scale = 1
}
return rescaled{img, scale}
1
}