def mirrorHalfHorizontal():
  file = pickAFile()
  pic = makePicture(file)
  
  #Get width and height of source image 
  width = getWidth(pic)
  height = getHeight(pic)
  #Create empty picture to hold result
  result = makeEmptyPicture(width, height)
  
  #Get color of pixels from bottom half of image(half height), and full width of image
  for x in range(0, width):
    for y in range(0, height):
      result_pixels = getColor(getPixel(pic, x, y))
      setColor(getPixel(result, x, y), result_pixels)
      setColor(getPixel(result, x, height - y - 1), result_pixels)
      
  #writePictureTo(result, "C:\Users\Cody\Documents\CSUMB\CST 205\Lab 4\problem1_horzhalf.jpg")    
  show(result)