Crop VideoGrabber to a ofRectangle

Hello, I want to crop a videograbber into a ofRectangle maintaining its aspect ratio. I know that by scaleTo I can fit the content creating black bars but I want to actually crop the grabber.

Any ideas how can I achieve this?

Thanks in advance.


Do you mean that you want to draw it cropped, without the black bars?
You can use something myVideo.getTexture().drawSubsection to do that.

Or do you mean that you want a cropped copy of the pixel data that you plan on processing?