Re: [Gambas-user] PictureBox.Picture.Image[x, y] output interpretation

2010-01-17 Thread BenoƮt Minisini
> 2010/1/17 kevinfishburne : > > When retrieving the value of a pixel at x,y from the picture in a > > picturebox control it outputs a single value. How does this value > > represent the pixel's value, and can it be easily converted to an RGB > > value? > > Red = Value Mod 256 > Green = Int(Value

Re: [Gambas-user] PictureBox.Picture.Image[x, y] output interpretation

2010-01-16 Thread nospam.nospam.nos...@gmail.com
2010/1/17 kevinfishburne : > When retrieving the value of a pixel at x,y from the picture in a picturebox > control it outputs a single value. How does this value represent the pixel's > value, and can it be easily converted to an RGB value? Red = Value Mod 256 Green = Int(Value / 256) Mod 256 Bl

[Gambas-user] PictureBox.Picture.Image[x, y] output interpretation

2010-01-16 Thread kevinfishburne
When retrieving the value of a pixel at x,y from the picture in a picturebox control it outputs a single value. How does this value represent the pixel's value, and can it be easily converted to an RGB value? This is something that's going to need to be done 4,294,967,296 times, so is there a qui