Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

WebcamSubscriber width/height defaults

Level 3
Level 3

If I set the WebcamSubscriber.width = 100 shouldn`t the .height default to 4:3 ratio of my cam and not to a 100x100  square?

2 Replies

No, width and height directly change the visual object's dimensions.

If you want to preserve the aspect ratio you will need to calculated from the initial value of width and height (it could be different than 4/3).

Level 3
Level 3

well I only set WebcamSubscriber.width = 100 and I got a 100x100  square.