The Image you are talking about if its taking the entire screen Space then you have to find out the width and height using onSizeChanged() method and retrieve width and height of the screen using getWidth() and getHeight() methods in and use these values in onDraw() method to draw a rectangle.
Hope the solution i mentioned above works
Hug your destiny! And hug this tiny ad:
Thread Boost - a very different sort of advertising