Learn to Program with ZedLX

Free Online Programming Course for Beginners

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

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

The signature of this functional getter 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 functional getters must return a value.

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

Loading...