David Torno takes a look at the Sample Image Expression in After Effects which is used to read the color and alpha information of a layer. Here David shows how to read the values that the After EFfects Sample Image Expression outputs and use those values to drive the intensity of a lens flare.
Check out the 2 part post for Using the Sample Image Expression in After Effects here.