Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Drawing on Images and Auto-assign [4/12]

The procedure boxFillp fills a rectangular area of the screen. The signature of procedure boxFillp is:

  • void boxFillp(
    • point2D position, (top-left corner)
    • vector2D size,
    • colorA color
    • )

The word void specifies that this procedure does not return a value.

The corresponding member function named .boxFill is available from type image. This member function returns the resulting image. Because of this it has a slightly different signature (it returns a value of type image).

Loading...