Repository navigation
SnapSharp v1.1.0
SnapSharp v1.1.0 发版说明
缺陷修复
- 对话框圆角外带入桌面背景:元素和窗口模式按系统圆角或窗口提供的原生区域裁剪,将轮廓外的像素设为透明,PNG 可保留透明区域;普通矩形控件、最大化窗口及手动区域截图保持原形。完全自绘且不提供原生区域的透明窗口,暂不自动还原透明度。
- 测量读数遮挡线条:直尺、两点测距和角度尺的读数优先放在测量范围外,自动避开测量线、投影线、角度弧线、端点、其他读数和放大镜;靠近边缘时换侧,空间拥挤时寻找可用空白区域。
- 放大镜中心难以辨认:增加黑白双描边十字准星和像素定位框,在纯白、纯黑背景上均可定位;准星跟踪实际采样像素,屏幕边缘处也能正确显示位置,中心留空以保留像素原色。
- 参考线按钮缺少反馈:首次点击或按 G 生成居中的一横一竖两条参考线,后续操作隐藏或恢复;清空后可重新生成,避免按钮看似没有反应。
功能改进
- 独立尺子测量工具:增加直尺、框尺、两点测距和三点角度测量,可保留各工具的结果并同时显示;直尺支持倾斜及 Shift 水平/垂直约束,两点显示坐标、横纵差值和斜距,角度尺按步骤引导取点。
- 刻度与相对坐标:独立尺子的基础零点移到刻度带内侧并明确标记;框尺内部刻度及相对坐标从框左上角零点起算,便于测量元素内部间距,移动和缩放继续按物理像素计算。
- 工具栏和缩放交互:所有测量工具、快捷键、参考线、放大镜及自动复制开关直接显示在顶部工具栏,窄窗口自动换行;各工具的小眼睛按钮控制结果显示。上下左右四边均有缩放手柄,整条边缘也可拖动,顶部工具栏空白处可移动窗口。
- 参考线与精确取点:支持从上方/左侧刻度拖出更多参考线,拖动调整、右键删除,悬停显示坐标和拖动方向;Alt 辅助吸附附近屏幕边缘、参考线或测量区域边界,Ctrl 可在参考线上测量。放大镜显示像素、相对坐标和 HEX 颜色,并自动选择位置以避让鼠标和端点。
- 自动与手动复制读数:工具栏新增“自动复制”,默认关闭并记住开关状态;仅在测量完成时复制对应读数,底部短暂提示结果。Ctrl+C 可手动复制当前工具已完成的结果;拖动过程、取消、参考线操作和窗口缩放不触发复制,剪贴板被占用时可手动重试。
- 独立尺子全局快捷键:可在“设置 → 快捷键”中为“屏幕尺子”设置全局快捷键,默认留空,支持冲突检查和清空禁用;已打开时激活现有尺子。截图界面的 R/X 固定快捷键保持不变。
- 本地化与回归检查:补齐测量操作、复制提示及快捷键说明的 21 个语言/地区资源包;增加圆角透明导出、四边缩放、读数避让、放大镜对比度及采样跟踪、复制触发和偏好保存检查,并验证中文窗体渲染。
以上测量交互改进针对独立屏幕尺子,全屏截图尺子保持原有行为。
SnapSharp v1.1.0 Release Notes
Bug Fixes
- Desktop content outside dialog corners: Element and Window modes now clip to system-rounded corners or an application's native window region, making pixels outside the silhouette transparent. PNG preserves transparency; rectangular controls, maximized windows and manual Region captures retain their shape. Custom transparent windows without a native region are not automatically reconstructed.
- Readouts covering measurement lines: linear, two-point and angle labels prefer positions outside their measurements, avoiding measurement and projection lines, angle arcs, endpoints, other labels and the magnifier. Labels switch sides near edges and search available space when crowded.
- Hard-to-see magnifier target: add a black-and-white outlined crosshair and pixel frame for visibility on white and black backgrounds. The reticle tracks the actual sampled pixel, including near desktop edges, while leaving its center clear to preserve the sampled color.
- Unresponsive-looking guide button: the first click or G press creates centered horizontal and vertical guides; subsequent operations hide or restore them. Guides can be recreated after clearing.
Improvements
- Standalone measurement tools: add linear, box, two-point and three-point angle measurements, retaining one result per tool for simultaneous display. Linear measurements support arbitrary orientation and Shift axis constraints; two-point measurements show coordinates, horizontal/vertical deltas and diagonal distance; angle measurements guide each click.
- Scales and relative coordinates: mark the standalone ruler's inset base origin. Box scales and relative coordinates start at the box's top-left corner for measuring internal spacing. Moving and resizing continue to use physical screen pixels.
- Toolbar and resizing: expose every measurement tool, shortcut, guides, magnifier and auto-copy toggle on the top toolbar, wrapping in narrow windows. Small eye buttons control result visibility. Resize using handles or entire edges on all four sides, and drag the toolbar background to move the ruler.
- Guides and precision: pull additional guides from the top/left scales, drag to move and right-click to delete. Hover for coordinates and directional cursors. Hold Alt to snap to nearby screen edges, guides or measurement bounds; hold Ctrl to measure on a guide. The magnifier displays pixels, relative coordinates and HEX color, choosing positions that avoid the pointer and endpoints where space permits.
- Automatic and manual result copying: add an Auto copy toggle, initially off, with a remembered preference. Copy only completed measurements and briefly confirm the result in the footer. Ctrl+C manually copies the active tool's completed result. Drafts, cancellation, guide operations and window resizing do not copy; retry manually if the clipboard is busy.
- Standalone ruler global shortcut: configure Screen ruler under Settings → Keyboard shortcuts, with conflict checks and an initially empty shortcut. Clear it to disable activation; an existing ruler is activated instead of duplicated. Fixed R/X capture shortcuts remain unchanged.
- Localization and regression coverage: translate measurement, copying and shortcut hints across all 21 language/region packs. Add checks for transparent dialog exports, four-edge resizing, label placement, magnifier contrast and pixel tracking, copy triggers and persisted preferences, including rendered Chinese windows.
These measurement interaction improvements apply to the standalone ruler; the full-screen capture ruler retains its existing behavior.