Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

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

The getter function .crop from type image returns the specified part of the image.

The signature of this getter function is:

  • image image.crop(
    • int x, (top)
    • int y, (left)
    • int sizeX,
    • int sizeY
    • )

The first word of the signatures specifies the type of the return value. In other words, this function produces a new value of type image. All getter functions must return a value.

The name image before the dot specifies what type does this function belong to.

Loading...