I’m using JMyron in a webcam app written in Java, and the program returns what the webcam is seeing as an int []. Since it’s one pixel per int, how does it represent the rgb values of the pixel as one int?
I’m using JMyron in a webcam app written in Java, and the program returns
Share
An int is 32 bits. So the first 8 bits of the int are red 0-255, the second 8 bits are green 0-255, the third 8 bits are blue 0-255, and the last 8 bits are the alpha value 0-255.
That’s why it’s called 32-bit color. It blew my mind when I first connected the dots.