Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What does red+green * 256+ blue *256*256 mean in vb? When the scroll bar scrolls. . Why *256 in the back?
What does red+green * 256+ blue *256*256 mean in vb? When the scroll bar scrolls. . Why *256 in the back?
Let's look at decimal numbers first. If there are three numbers12,34,56, they can be spelled into a long number 123456.

56 + 34 * 100 + 12 * 100 * 100 = 123456

So is 16. 16 is 100, which is 256 in 10. For example, three 16 hexadecimal numbers &; HA 1。 HB2 and & ampHC3 should be spliced into &; HA 1B2C3, you can do this:

& ampHC3+& amp; HB2 * & amph 100+& amp; ha 1 * & amp; h 100 * &h 100 = & amp; HA 1B2C3

Converted to 10 is.

195 + 178 * 256 + 16 1 * 256 * 256 = 10597059