Mapping color representations
No. 256
|
Q: |
A developer requires RGB based colors. Thus a color will be represented by its red, green and blue components each ranging from 0 to 255. As an example (255, 0, 100) denotes a full red intensity, zero green and medium blue. Our developer maps this range [0, 255] to a Java byte's range [-128, 127]. The given example will thus read (127, -128, -28). Our developer wants to map triples like the former
Is this possible? Explain your statement. TipConsider the underlying data types. |
|
A: |
An |
