Think about where the top left pixel is, and where it needs to go. Think about the next pixel and where it needs to go.
How will you get all of the pixels from where they are to where they need to...