i tried to change the last 3 units of pixels. And every unit i could change up to 3 bytes, i looked up to the tutorial and it only showed me the code, not the explanation. why "&" and "0b11" are there.0b11 was the binary code of 3
Asked
Active
Viewed 50 times
0
-
Welcome to SO! https://stackoverflow.com/help/how-to-ask What is your question? https://stackoverflow.com/help/minimal-reproducible-example It would help if you could cite the URL you were reading, so we can read it, too, putting us all on the same page. And please post some of the code you're working with, which applies that binary 0x03 mask to some pixels. – J_H Nov 22 '22 at 03:27
-
1Does this answer your question? [What is bit masking?](https://stackoverflow.com/questions/10493411/what-is-bit-masking) – Reti43 Nov 22 '22 at 10:44