Are you suggesting more checks then that the pixels are within the dimensions of the drawable?
you need at least to use the intersection of the bitmap and the drawable (not sure both start at (0,0) corner though). I was also wondering what would happen when stretching is required, but IIRC this is done way before (normally) A+