Here is my program to make a thick red border at the top of my picture: filename=pickAFile() pic=makePicture(filename) show(pic) w = getWidth(pic) col=1 while col<w: row=1 while row<100: pixel = getPixel(pic,col,row) setColor(pixel,red) row=row+1 col=col+1 repaint(pic) Here is the code for every 4th line to be green: filename=pickAFile() pic=makePicture(filename) show(pic) w = getWidth(pic) col=1 while col<w: row=1 while row<699: pixel = getPixel(pic,col,row) setColor(pixel,green) row=row+3 col=col+1 repaint(pic) writePictureTo(pic,"H://obama.jpg") |