Skip to main content
jérômel65546684
Participating Frequently
January 25, 2016
Answered

How to get zoom factor in UI handling?

  • January 25, 2016
  • 1 reply
  • 397 views

Hello,

Is there any way to get the current level of zoom in a doClick handle?

In fact i'd like to compute the size of the window in which the video is displayed.

I tried by using source_to_frame but didn't succeed.

Thx in advance!

This topic has been closed for replies.
Correct answer shachar carmi

use event_extraP->cbs.frame_to_source() to check the gotten coordinates of (100, 0).

then then divide the gotten X result by 100, and you have the scale factor.

1 reply

shachar carmiCommunity ExpertCorrect answer
Community Expert
January 26, 2016

use event_extraP->cbs.frame_to_source() to check the gotten coordinates of (100, 0).

then then divide the gotten X result by 100, and you have the scale factor.