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

nospam.nospam.nospam at ...626... nospam.nospam.nospam at ...626...
Sun Jan 17 08:08:11 CET 2010


2010/1/17 kevinfishburne <kevinfishburne at ...1887...>:

> 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
Blue = Int(Value / 256 / 256) Mod 256




More information about the User mailing list