问题标签 [magnification-api]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
829 浏览

.net - Windows 放大 API、.NET 和矩阵

我正在尝试使用 Windows Magnification API 在 .net 中创建放大镜应用程序。除了实际设置放大级别(默认为 100%)之外,我几乎已经完成了所有工作。问题是,我在网上的任何地方都找不到任何示例,并且 API 的所有文档都是 C++ 代码。这是我遇到问题的特定功能。

MAGTRANSFORM 结构定义如下:

其中最令人困惑的部分是 memset - 我不确定它在 .NET 中的作用或等效项是什么,但同样令人困惑的是多维数组/矩阵以及我将如何在 .NET 中处理它。

任何帮助将不胜感激。

0 投票
1 回答
1440 浏览

.net - .NET 中的 vista/win7 放大 API

Win7/Vista SDK 中有 magnification.lib 用于使用Magnification API for C++。如何在 .NET windows 窗体项目中使用此 API?

0 投票
2 回答
933 浏览

c# - Windows 窗体将所有内容强制半屏并将我的窗体放在顶部

我知道如何将我的表单放在顶部,但我正在努力实现更具体的行为:我希望我的窗口位于屏幕顶部,强制所有其他窗口半屏。为了说明我想要什么,打开 Windows 放大镜工具并将其停靠在屏幕顶部。

有谁知道如何实现这一目标?最欢迎向正确方向提示或轻推:)

谢谢 !!

0 投票
1 回答
1796 浏览

c# - Issues with Magnification API

I am having issues with the Magnification API provided my Microsoft. This is an API that is written in C++ so to use it with C# you must use a series of .dll imports as described in this question.

My issue came after I had the magnification working. I was using my mouse to magnify a predefined area of the screen, the magnification was set in a rectangle, the rectangle filled a WinForm, I placed the form on top of my mouse (mouse in center of form), and the form would follow my mouse around the screen.

About 80% of the time, the app will launch with a black screen. I tried many different types of updates but can't find a fix. The magnification will not show up, it will only show a black screen. Nothing on the from will show up, only a black screen. In summary, only a black screen will show up, BECAUSE of the Magnification API.

0 投票
1 回答
668 浏览

c++ - 绘制放大镜窗口(放大 API)

我正在使用 windows magnification API 创建一个应用程序,需要在那里绘制,但不知道如何。我试图在 DC 上画画,但它不起作用。

0 投票
1 回答
671 浏览

c# - 在 Windows 8 Pro 平板电脑中使用 WinAPI 引发 AccessViolationException

我正在尝试使用Magnification API为32 位 Windows 8 Pro 平板电脑编写辅助功能应用程序。应用程序可以完美地放大和缩小全屏,但是当放大时,点击事件被发送到未放大屏幕的错误位置,因此用户无法触摸他所看到的确切内容。

为了解决这个问题,我尝试了MagSetInputTransform(fSetInputTransform, rcSource, rcDest). 它适用于64 位 Windows 8 桌面,但是当我在平板电脑上测试它时,我收到以下错误:

当我尝试为 x86 目标平台编译项目并在 64 位机器下测试时,得到完全相同的错误。

总结;

如何在 32 位 Windows 8 平板电脑中使用此 WinAPI 功能?

编辑1

这是产生错误的方法:

编辑2

以下是 pinvoke 签名:

就是我的 RECT 结构的样子。

0 投票
2 回答
3135 浏览

javascript - 宏伟的弹出式内嵌画廊

我正在使用 magnific Popup 插件(http://dimsemenov.com/plugins/magnific-popup/documentation.html#initializing_popup

我可以先把我的代码放在这里:

});

所以我想有一个内联画廊。它一切正常,但这部分没有:

我只是想得到下一个实例,当有一个时。当我在运行时通过 firebug 运行此代码时,它可以工作!

谁能帮我这个?希望。

问候大卫

0 投票
0 回答
133 浏览

c++ - 在 Windows API 中引发异常时,异常处理失败

我正在调用 Windows 函数 MagSetWindowSource(Windows 放大镜 API)。由于某种原因,它引发了异常。我想捕捉这个异常,但我不能这样做。我试过了

并显示在用户回调消息期间遇到了未处理的异常。我在 Visual Studio 中尝试了所有 C++ 异常标志(/EHa、/EHSc 等)。对此问题的任何帮助表示赞赏。

0 投票
0 回答
535 浏览

c++ - 小部件中的 QT 小部件对鼠标事件透明

我正在使用 Qt 和 Magnification API 开发应用程序。我想创建一个具有可变框架的放大镜。我创建了一个 QWidget MagnifierForm:

接下来我创建一个 QFrame MagnifierFrame:

问题是放大镜对鼠标事件不透明。请帮忙。

0 投票
1 回答
408 浏览

java - Createwindowex invalid handle error

I am using jna functions to call winapi

Magnification Api code

I am getting ERROR_INVALID_HANDLE error. What is wrong with my code.

Thanks