screenshot - How to capture a specific area on the sketch in Processing -
i want take screenshot of specific area in sketch (in processing). save();
, saveframe();
references can't because capture whole area, need smaller specific capture. how properly?
check processing reference. there's function called get
may called on pimages or drawing screen itself. don't mention whether want capture weird shape or rectangle, i'll assume standard rectangle. according documentation, want is:
syntax: get(x, y, w, h)
parameters:
- x int: x-coordinate of pixel
- y int: y-coordinate of pixel
- w int: width of pixel rectangle get
- h int: height of pixel rectangle get
Comments
Post a Comment