I believe iPhoto uses OpenGL. During scrolling, output quality is decreased so that rendering time is greatly reduced. It's probably some trick with textures. Someone that actually has dealt with OpenGL (I never have myself) will know for sure.