Changed icon scaling algorithm to CatmullRom

This commit is contained in:
Dario Emerson
2020-05-22 15:12:55 +02:00
committed by Lea Anthony
parent 0e6265a9d7
commit 7a3ab27977

View File

@@ -100,7 +100,7 @@ func generateWindowsIcon(pngFilename string, iconfile string) error {
for _, size := range sizes {
rect := image.Rect(0, 0, int(size), int(size))
rawdata := image.NewRGBA(rect)
scale := draw.ApproxBiLinear
scale := draw.CatmullRom
scale.Scale(rawdata, rect, pngdata, pngdata.Bounds(), draw.Over, nil)
icondata := new(bytes.Buffer)