Hosted by
 |
PBM
 |  | exception Expect_P4 |  |
 | Raised if the magic number is not P4. |  |
 |  | procedure Read_Header |  |
 | Read a PBM header from a stream. |  |
|
 |  | procedure Write_Header |  |
 | Write a PBM header to a stream. |  |
|
 |  | type Bit_Buffer |  |
 | A buffer for one row of black/white pixels. |  |
 |  | function Create |  |
 | Create a bit buffer with a capacity of 8 * Byte_Count pixels. |  |
|
 |  | procedure Deallocate |  |
 | Free the bit buffer's memory and set the instance variable to
null. |  |
|
 |  | procedure Reset |  |
 | Restart reading from the left of the bit buffer. |  |
|
 |  | procedure Clear |  |
 | Set all bits in this bit buffer to False. |  |
|
 |  | procedure Read_Row |  |
 | Fill the bit buffer with data from a stream. |  |
|
 |  | function Read_Pixel |  |
 | Read the next bit from the bit buffer and advance the bit pointer. |  |
|
|
|