Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27349

How to arrange bit side by side

$
0
0
I have some problem to arrenge bit side by side. I have a binary value of a charecter is 00010000. which is stored in LSB of a pixel in an image, with the pattern of 3:3:2 from the char bit. ie

r = 10101 000( 000=first 3 bit from 8 bit chr )
g= 11011 100(100= middle 3 bit from 8bit chr)
b= 011001 00(00= last 2 bit from 8 bit chr)

I have successfully extracted the bit and store in an integer variable but I can't understand how to arrange the bit to form the 00010000.

I am using vb.net 2008 express

Viewing all articles
Browse latest Browse all 27349

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>