Intrinsic-124 DrawRectangle

Top  Previous  Next

124: DrawRectangle(Handle, X1, Y1, X2, Y2);

 

This draws a rectangle on the image specified by Handle. The variables X1, Y1, X2, and Y2, specify a the upper-left and lower-right corners of the rectangle. The color and width of the lines drawing the rectangle are specified using the SetPen intrinsic. The interior of the rectangle may be filled with any color or empty depending on the values passed to the SetFill intrinsic. (If you are working with the Console (handle=-1), controlling Screen Refresh can speed up this intrinsic. See the Console Refresh section for more information.)