laying groundwork for point-in-pixel hit test