Reading a 1bpp pbm format image using C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Anurag Arora
    New Member
    • Dec 2011
    • 1

    Reading a 1bpp pbm format image using C#

    I want to read an 1bpp pbm(portable bitmap) format image and store the bits data i.e 0 or 1 in a file so that I can perform further operation's on that data. but i think the smallest data that we can read using C# is a byte so how can i read a bit and store the data into a file for further use.

    Thank you in advance. :)
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Why would you need to store the same data that's already stored in the file? You can figure out if a bit is on or off by anding for that particular bit.

    Comment

    Working...