Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
How can i define a rectangle area of an image where i want to delete all the pixel just as a rubber does in Photoshop?
You just draw a rectangle over the top of the image with the background colour! There's no magic "Eraser" tool in GDI like there is in, say, photoshop.