语言

Menu
Sites
Language
Scale Factor in Tizen::Ui::TouchPinchGestureDetector class
Hello everyone! I have got some necessity for Tizen::Ui::TouchPinchGestureDetector class using. More precisely I have to scale picture when user pinches. Mentioned class has got GetScale and GetScaleF methods which get the scale factor among touched points, according to documentation. So question is what is scale factor? How is it calculated? What does it characterize?

响应

2 回复
muditha murthy
Scale factor is the number which denotes the scales or multiply some quantity. In touch gesture it denotes the scale upto which the picture has to be redrawn. The scale factor calculation is internal and is taken care by GetScale API.
muditha murthy
You can find the calculation code under the source code. Framework/osp/osp-uifw/src/ui/FUi_TouchPinchGestureDetector.cpp