Is there a method for changing the LSB value of java.awt.Color RGB components?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Turning a bit on:
Turning a bit off:
Toggling the bit on or off if it was off or on before:
In other words:
someValue is binary OR’ed with a number with the LSB on so the resulting number will have its LSB on too.
someValue is AND’ed with a number with all bits except LSB on so the resulting number will have LSB OFF.
someValue is XOR’ed with with a number with the LSB on, so the resulting number will have its LSB toggled.