mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Changed icon scaling algorithm to CatmullRom
This commit is contained in:
committed by
Lea Anthony
parent
0e6265a9d7
commit
7a3ab27977
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user