Testing for Transparency

Is their a way to test if all of the pixels in a rectangle are transparent.

Im animating from a sprite sheet and i want the animation to stop whenever it detects no pixels, or when all of its pixels are transparent.

And/Or can any body just tell me how to figure out if one certain pixel is transparent