file=pickAFile()
pic=makePicture(file) show(pic)The image should display in a separate window.
print picInfo on the picture will be displayed including its height and width.
def shift(pic): for p in getPixels(pic): r=getBlue(p) g=getRed(p) b=getGreen(p) setColor(p,makeColor(r,g,b)) returnSave the program then load and run it with the command:
shift(pic)(If you get in error it may be that the indentation was reformatted during the copy. Redo the indentation.)
repaint(pic)
writePictureTo(pic,pickAFile())Navigate to the desktop and save the file as "HarryNew.bmp".