[Gambas-user] gb3: retrieving channel value from pixel color
kevinfishburne at ...1887...
Wed Jul 13 09:55:07 CEST 2011
On 07/13/2011 03:25 AM, Fabien Bodard wrote:
> hum ok i've understand the way it work
> Dim redvalue as Integer
> redvalue = color[SomeImage[0,0]].red
> not easy to find that in the doc ... in fact it's the class color that
> return a colorinfo.
> Benoit, the created, array read/write fuctions page need to be more
> visible... you need to find a better way for users found them !
> they are blended in the text and look like all others links...
Thank you. I also found I could divide the Integer representing the
color by 65536 to get an approximation. Don't know if the color having
an alpha value would throw this off, as my case had no alpha. I had a
gray-scale image and was trying to get the value of a pixel from it.
I have noticed that if you do a search on the gb docs that a lot of old,
sparse docs show up. Normal browsing links to pretty solid stuff, but
there seems to be a lot of orphaned articles in there when searching.
e-mail: sales at ...1887...
phone: (770) 853-6271
More information about the User