In this paper, we present a new scheme to inpaint an image which part of it is damaged or lost. This method is based on the formation of patterns. The method searches some specified patterns that are started with damaged or lost pixel. Next, these pixels are filled out with the colour of the observed patterns.