croppedImage = image.crop(200, 200, 200, 200)
window = Window(800, 800)
window.add(croppedImage)
window.wait()
window.close()
Error message: ParameterTypeError: Incorrect type for parameter 'graphic' : NoneType, expected GraphicalObject
croppedImage = image.crop(200, 200, 200, 200) window = Window(800, 800) window.add(croppedImage) window.wait() window.close() Error
Share
This usually means that the
cropfunction works by changing the image object it is applied to, instead of creating a new one – ie, you want to do this: