I noticed that you also use the image/color package. There uint8 are indeed
mention for Color func. You fill in your matrix using uint8() but the type
of the image might be lost between your routines as explained
in https://blog.golang.org/go-image-package as you use src (generic) and
not typed
Hi Matt,
What i want to do is get the r,g,b,a values individually, modify them and
then set them.
Your example was good, but is not extracting the r,g,b,a values
individually (which come out as uint32's), and then say when i change them
and set them again, it complains that it only wants uint8's.
I can't tell exactly what the problem is from your example, but does this
help?
https://play.golang.org/p/AF8UjkG4Ao
On Sun, Jul 3, 2016 at 4:40 PM simran wrote:
> Hi Constantin,
>
> Where i seen the uint8 being defined is at:
> https://golang.org/pkg/image/color/#RGBA
>
> Although the there is
Hi Constantin,
Where i seen the uint8 being defined is at:
https://golang.org/pkg/image/color/#RGBA
Although the there is a method RGBA() which returns r,g,b,a in uint32 the
struct is only uint8's and so i suspect has to be initialised as such.
What i'm finding annoying is that the following fai
I cannot answer about the matrix library but the package is consistently
talking about int and not uint8
If you look at the specification https://golang.org/pkg/image/#RGBA.SetRGBA
You can impose 64bit which is not your pupose but apparently truncating int
is not mandatory.
Can you indicate where