This commit is contained in:
@@ -23,7 +23,7 @@ func (a *Animation) animateDoorbell() {
|
|||||||
a.ctx.Pop()
|
a.ctx.Pop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func loadImage(imgType string, img string, a *Animation) {
|
func (a *Animation)loadImage(imgType string, img string) {
|
||||||
baseImage, _ := b64.StdEncoding.DecodeString(img)
|
baseImage, _ := b64.StdEncoding.DecodeString(img)
|
||||||
bigImage, _, _ := image.Decode(bytes.NewReader(baseImage))
|
bigImage, _, _ := image.Decode(bytes.NewReader(baseImage))
|
||||||
a.doorbell.image = imaging.Resize(bigImage, 64, 64, imaging.Lanczos)
|
a.doorbell.image = imaging.Resize(bigImage, 64, 64, imaging.Lanczos)
|
||||||
|
|||||||
Reference in New Issue
Block a user