< Previous | Contents | Next >

Crop

Cropping or Cutting out a subsection of an image. Offsets are defined in pixels, and the destination image defines the size. Can also to the reverse and used to paste a smaller image into a larger image.


--***********Crop Image***********

--Original image (img) Output image (out). Offset in Pixels 0,0 is bottom left. Negative and out of bounds values are allowed

img:Crop(out, {CROP_XOffset = 100, CROP_YOffset = 50}) -- Offset in pixels