We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
limit Capture rect? (Read 298 times)
limit Capture rect?
Sep 30th, 2008, 9:27pm
 
is it possible to limit the rect captured from a camera to a rectangle smaller, and of a different aspect ratio, than the camera's native resolution?

for example, i have a camera that outputs 640x480 frames, but i just want to show a vertical strip of the center, say, 320 pixels.

i could make the app size 320x480, and draw the Capture at -160, but then i'm still drawing the whole frame, and it seems like there could be performance gains to only draw pixels i need.

thanks!
Page Index Toggle Pages: 1