imagerectangle Draw a rectangle Description intimagerectangle resourceimage intx1 inty1 intx2 inty2 intcol imagerectangle creates a rectangle of color col in image image starting at upper left coordinate x1, y1 and ending at bottom right coordinate x2, y2. 0, 0 is the top left corner of the image.