Source and destination
First identify an intact area whose texture, color, lighting, and sharpness resemble the damaged area. Then paint over the unwanted region using that area as the source. The stamp maps source pixels into corresponding destination positions. A nearby source is often useful, but proximity alone is insufficient if a gradient, shadow, edge, or focus change separates the two areas.