Slide 19
Slide 19 text
Resize each frames
for _, srcFrame := range src.Image {
srcFrameBounds := srcFrame.Bounds()
dstFrameBounds := image.Rect(0, 0, width, height)
dstFrame := image.NewPaletted(dstFrameBounds,
srcFrame.Palette)
draw.CatmullRom.Scale(dstFrame, dstFrameBounds,
srcFrame, srcFrameBounds, draw.Src, nil)
dst.Image = append(dst.Image, dstFrame)
}