// Finds the x and y coordinates of the pixel inside the // selection with the smallest y coordinate. macro "FindTopPixel" { getSelectionCoordinates(x, y); minx=getWidth(); miny=getHeight(); for (i=0; i