- Jun 6, 2020
- 11,559
- 4,422
[Class] Pinch Zoom and Move View
I had the need for my purposes to do the Pinch Zoom in contemporary Move to a View, now I put my code available to anyone who might be in need, just to get ideas on what to do.
Is required the library Gesture and Reflection of Agraham.
Events:
- Click
- LongClick
- Change
Property:
- CanMove
- CanZoom
- LimitArea
- LimitBorder
- Zoom
[UPDATE 1.00]
I changed the code in Class.
[UPDATE 1.10]
Added the following methods:
SetIfCanMove() - sets whether the View may translare or not.
GetIfCanMove - returns if the View can translate.
SetZoom() - sets the zoom.
GetZoom - returns the current zoom.
[UPDATE 1.20]
Improved zoom function, now the zoom is localized based on the touches.
Renamed Class in PinchZoomAndMove.
[UPDATE 1.30]
Added the possibility to set the BringToFront.
Added the possibility to set the Tag for a...
I had the need for my purposes to do the Pinch Zoom in contemporary Move to a View, now I put my code available to anyone who might be in need, just to get ideas on what to do.
Is required the library Gesture and Reflection of Agraham.
Events:
- Click
- LongClick
- Change
Property:
- CanMove
- CanZoom
- LimitArea
- LimitBorder
- Zoom
[UPDATE 1.00]
I changed the code in Class.
[UPDATE 1.10]
Added the following methods:
SetIfCanMove() - sets whether the View may translare or not.
GetIfCanMove - returns if the View can translate.
SetZoom() - sets the zoom.
GetZoom - returns the current zoom.
[UPDATE 1.20]
Improved zoom function, now the zoom is localized based on the touches.
Renamed Class in PinchZoomAndMove.
[UPDATE 1.30]
Added the possibility to set the BringToFront.
Added the possibility to set the Tag for a...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید