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

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

php - facebook and github login HWIOAuthBundle and FOSUserBundle in Symfony2.1 -

hadoop - Sqoop installation export and import from postgresql -