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