屏幕捕获 - 缩放和平移事件 [英] Screen Capture - Zoom and Pan Events
问题描述
寻找屏幕截图缩放事件的一些示例。 目前,缩放和平移事件连接到Ctrl + Shift + F9键和光标位置。 是否可以将缩放事件连接到右键单击上下文菜单
以获取诸如缩放到窗口之类的行为。
Looking for some example(s) of the screen capture's zoom event. Currently, the zoom and pan events are wired to the Ctrl+Shift+F9 key and the position of the cursor. Is it possible to wire up the zoom event to a right click contextmenu to obtain a behaviour such as a zoom to window.
对此解决方案的任何建议都表示赞赏。
Any suggestions on this solution are appreciated.
推荐答案
目前可以通过调用Job上的EnableZoom()来启用缩放。  并将该区域放大两倍。 您可能会有一个右键单击事件,它将调用EnableZoom()/ DisableZoom(),然后以编程方式将鼠标光标移动到窗口中心的
。
currently the zoom can be enabled by calling EnableZoom() on Job. And magnifies the area to twice as big. You can potentially have a right click event that will call EnableZoom()/DisableZoom() and then move the mouse cursor programatically to the center of the window.
如果需要任何示例代码请告诉我。
If you need any sample code please let me know.
LY
这篇关于屏幕捕获 - 缩放和平移事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!