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

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -