change pixel format to pointer

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-01-23 02:04:27 +03:00
parent ba36a87eb7
commit c00b8c7ae0
7 changed files with 24 additions and 24 deletions

View File

@@ -51,7 +51,7 @@ func main() {
for y := 0; y < height; y++ {
for x := 0; x < width; x++ {
r, g, b, a := im.At(x, y).RGBA()
clr := rgbaToColor(&cfg.PixelFormat, r, g, b, a)
clr := rgbaToColor(cfg.PixelFormat, r, g, b, a)
colors = append(colors, *clr)
}
}