If I had a gray pixel on screen, which is ( R128, G128, B128 ), how would that look? is 1 pixel = 1 byte (8 bits)? 1 byte = 8 number, so it wouldn't fit, because you would need 9 places.
Announcement
Collapse
No announcement yet.
RGB and Binary
Collapse
X
-
RGB and Binary
Bobby Parker
www.bobby-parker.com
e-mail: info@bobby-parker.com
phone: 2188206812
My current hardware setup:- Ryzen 9 5900x CPU
- 128gb Vengeance RGB Pro RAM
- NVIDIA GeForce RTX 4090 X2
- Windows 11 Pro
Tags: None
-
Originally posted by instinct View PostIf your question was how the byte value of 128 is expressed as a binary, then the answer is 10000000.
Regards,
ThorstenBobby Parker
www.bobby-parker.com
e-mail: info@bobby-parker.com
phone: 2188206812
My current hardware setup:- Ryzen 9 5900x CPU
- 128gb Vengeance RGB Pro RAM
- NVIDIA GeForce RTX 4090 X2
- Windows 11 Pro
Comment
-
Bobby Parker
www.bobby-parker.com
e-mail: info@bobby-parker.com
phone: 2188206812
My current hardware setup:- Ryzen 9 5900x CPU
- 128gb Vengeance RGB Pro RAM
- NVIDIA GeForce RTX 4090 X2
- Windows 11 Pro
Comment
-
it's actually rather simple. You have 8 bits. each bit represents a power of two. So the eigth bits correspond to:
128|64|32|16|8|4|2|1
These are ignored if the bit is 0 and added if it is 1.
so e.g. 3 is represented as:
or as in the previous example 128 as128 64 32 16 8 4 2 1 0 0 0 0 0 0 1 1
256 is all 1 obviously.128 64 32 16 8 4 2 1 1 0 0 0 0 0 0 0
Regards,
Thorsten
P.S. Things get a bit more complex if we're talking floating point representations instead of integers, no matter what bit-depth.
Comment
-
Originally posted by instinct View Postit's actually rather simple. You have 8 bits. each bit represents a power of two. So the eigth bits correspond to:
128|64|32|16|8|4|2|1
These are ignored if the bit is 0 and added if it is 1.
so e.g. 3 is represented as:
or as in the previous example 128 as128 64 32 16 8 4 2 1 0 0 0 0 0 0 1 1
256 is all 1 obviously.128 64 32 16 8 4 2 1 1 0 0 0 0 0 0 0
Regards,
Thorsten
P.S. Things get a bit more complex if we're talking floating point representations instead of integers, no matter what bit-depth.Bobby Parker
www.bobby-parker.com
e-mail: info@bobby-parker.com
phone: 2188206812
My current hardware setup:- Ryzen 9 5900x CPU
- 128gb Vengeance RGB Pro RAM
- NVIDIA GeForce RTX 4090 X2
- Windows 11 Pro
Comment
-
Originally posted by instinct View Postit's actually rather simple. You have 8 bits. each bit represents a power of two. So the eigth bits
256 is all 1 obviously.
P.S. Things get a bit more complex if we're talking floating point representations instead of integers, no matter what bit-depth.Colin Senner
Comment
-
because we use 0, correct? 0-255, which gives you the 256... it's all coming back now)
Bobby Parker
www.bobby-parker.com
e-mail: info@bobby-parker.com
phone: 2188206812
My current hardware setup:- Ryzen 9 5900x CPU
- 128gb Vengeance RGB Pro RAM
- NVIDIA GeForce RTX 4090 X2
- Windows 11 Pro
Comment
Comment