How do you expand a kinect's window to match the size of the canvas?

Im asuming you’re using the library I linked in the other post.
If that is the case, the image you are getting from the Kinect and the size of the canvas are not conected, so there’s no chance of getting the kinect image automatically adjust its size to the windows/canvas size.

If you have something like this in your code:

image(kinect2.getDepthImage(), 0, 0);

It means that you are placing the kinect image, in its original size at 0 of x and 0 of y. So the kinect did’t care about your canvas size.

But if you have something like this:

image(kinect2.getDepthImage(), 0, 0, width, height);

That mean you’re adjusting the image you get from the kinect to the size of your windows/canvas.

2 Likes