Combine the bits from each of the bit-planes used to describe a particular RastPort into the pen number selector which that bit combination normally forms for the system hardware selection of pixel color.
INPUTS
rp
pointer to a RastPort structure
x
see next
y
a point in the RastPort
RESULT
penno
the pen number of the pixel at (x,y) is returned. -1 is returned if the pixel cannot be read for some reason.