image()ing a part of a PImage
in
Programming Questions
•
2 years ago
Is there an easier way than .pixels[] to only show a selected part of an image? I see
this post but it seems to behave differently than described and I can't find any documentation to support it:
image(img, dx, dy, dw, dh, sx, sy, sw, sh);
where
dx, dy, dw, dh = the area of your display that you want to draw to.
and
sx, sy, sw, sh = the part of the image to draw (measured in pixels)
where
dx, dy, dw, dh = the area of your display that you want to draw to.
and
sx, sy, sw, sh = the part of the image to draw (measured in pixels)
1