rocinantealpha

reference / pictures

crop

A new picture of the part of a picture inside a box, in pixels from its top left: crop photo at 10 20 size 100 80. The part outside the picture is left out.

photo = load "landscape.png"image photo at 10 10 width 180part = crop photo at 80 20 size 70 70image part at 210 10 width 170
what it draws: the whole window, 400 by 300
What the example of crop draws

How to write it

crop picture at number number size number number

Gives a picture.

Related