- clearBit
auto clearBit(int value, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
- getBit
auto getBit(int value, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
- loader
void loader()
Undocumented in source. Be warned that the author may not have intended to support it.
- saver
void saver()
Undocumented in source. Be warned that the author may not have intended to support it.
- setBit
auto setBit(int value, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
A class that provides the ability to work with color images in P4 format. NB: The format is raw binary.
Note: This class supports indexing and assigning values to specific pixels via 1D or 2D indexing, and provides P4 file loading/saving capabilities. According to the accepted convention, in the original description of the format inside the Netpbm package, the extension of these files should be *.pbm.
Typical usage: