Similar to the other comment "Bit-mapped Graphics" by Steve Rimmer [0] is an excellent reference.
[0] https://archive.org/details/bitmappedgraphic0000rimm