开发者

Getting a LSB of a BMP binary image

开发者 https://www.devze.com 2023-03-04 15:38 出处:网络
i was already able to convert a BMP image intobinary memory streambut im confused with detecting LSB in pixel values..

i was already able to convert a BMP image into binary memory stream but im confused with detecting LSB in pixel values..

I have the byte[] stream as '10101011101010101010010' ... .. ..

First is there a way th开发者_高级运维at i can filter this binary stream to pixel values and detect LSB ?


If you want to read / write the Least Significant Byte to use the bitmap to hide information you will need to load the bmp data into an image, then access the pixel-data using GetPixel(). The BMP File itself might use RLL or some other compression so you cannot access the pixel data directly.

For detecting LSB in an image, it largely depends on the algorithm used, some are harder to detect as others. Do you have the description of the LSB-variant that might be in that image?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号