I am trying to create an app that allows the user take a screenshot of a portion of the screen that he selects with a rectangle. I've tried following several tutorials but I did not managed to make the rectangle appear. The best I could do was to take a screenshot from a predefined area... but it doesn't help much.

Thank you