More down to earth, image data is stored in an HxImageRep and processed via functions such as listed in Global image functions.
If you really want to know what is going on, see Image data representation and The way image operations work.
This chapter:
1.2.12 written by Dimitri van Heesch,
© 1997-2001