Skip to content
dalei.uk
Go back

构建属于自己的 Windows 全局截图工具

缘起

Capturing screenshots is probably the thing I do most at work nowadays. But the popular tools out there are just way too bloated—they come with all this extra social, cloud, and editing stuff that I absolutely don’t need.

现代办公中,截图几乎是最高频的操作。然而,市面上主流的截图工具往往过于臃肿,附带了一堆我从不需要的社交、云空间或修图功能。

为了追求“极致轻量、瞬间响应、即截即用”的体验,我决定自己动手,用 C# 和 WPF 构建一个完全符合个人使用习惯的截图工具: ⚡ DownLoad EXE

核心设计哲学

技术挑战与解决方案

在开发过程中,我遇到了一些棘手的问题,这里记录下解决方案:

1. 多屏幕 DPI 撕裂问题

如果你在 Windows 上混合使用不同缩放比例(DPI)的显示器,传统的 API 会导致截图错位或留白。 解决方案:通过调用 SetProcessDpiAwarenessContext,强制程序以 PER_MONITOR_AWARE_V2 模式运行,并使用 VirtualScreen 获取跨显示器的绝对物理坐标。

构建属于自己的 Windows 全局截图工具



Previous Post
DailyNote: Building a Minimalist, Fluid-Glass Timeline Diary
Next Post
IronCrypt:极简纯粹的桌面安全加密终端