Photoshop中鼠标位置的x和y坐标

Posted

技术标签:

【中文标题】Photoshop中鼠标位置的x和y坐标【英文标题】:x and y coordinates of mouse location in Photoshop 【发布时间】:2014-02-09 03:51:56 【问题描述】:

如何打开鼠标在屏幕上的位置的 X 和 Y 坐标? 我有 Photoshop CC。我正在创建界面并希望能够知道我的鼠标的位置。

【问题讨论】:

如果您要对我的问题投反对票,那很好,但请发表评论,以便我重新编写问题或将其标记为关闭。我讨厌人们如何投票并且不发表评论。下面的答案有 5 个赞成票,所以也许至少有几个人觉得这个答案很有帮助。我知道我做到了。 我也在想同样的事情 - 您的问题出现在 Google 搜索中。所以我赞成这个问题。 【参考方案1】:

虽然我目前无法检查,因为我在这台计算机上没有 Photoshop CC,但如果你去的话,根据过去的经验

Window -> Information

应该会出现一个调色板,其中包含光标的坐标。

【讨论】:

非常感谢 Window -> Info【参考方案2】:

F8 打开信息面板。这将在 x 和 y 坐标中显示您的鼠标位置。

您也可以按 Ctrl + R 来查看标尺。然后将鼠标移到左上角,从那里拖动可以将 x,y 位置的 0,0 坐标更改到画布上的任何位置。

【讨论】:

【参考方案3】:

当您绘制矩形之类的内容并按空格键进行绘制时。它将在 Photoshop CC 中显示生动的宽度高度和 x y 坐标

【讨论】:

【参考方案4】:

带有参考线和网格的位置

指南和网格可帮助您精确定位图像或元素。参考线显示为漂浮在图像上的非打印线。您可以移动和删除指南。您还可以锁定它们,以免意外移动它们。

智能参考线可帮助您对齐形状、切片和选择。当您绘制形状或创建选区或幻灯片时,它们会自动出现。如果需要,您可以隐藏智能指南。

网格对于对称布置元素很有用。网格默认显示为非打印线,但也可以显示为点。

指南和网格的行为方式相似:

Selections, selection borders, and tools snap to a guide or the grid when dragged within 8 screen (not image) pixels. Guides also snap to the grid when moved. You can turn this feature on and off.

Guide spacing, along with guide and grid visibility and snapping, is specific to an image.

Grid spacing, along with guide and grid color and style, is the same for all images. 

显示或隐藏网格、参考线或智能参考线

Do one of the following:

    Choose View > Show > Grid.

    Choose View > Show > Guides.

    Choose View > Show > Smart Guides.

    Choose View > Extras. This command also shows or hides layer edges, selection edges, target paths, and slices.

放置指南

If the rulers are not visible, choose View > Rulers.

Note:

For the most accurate readings, view the image at 100% magnification or use the Info panel.

Do one of the following to create a guide:

    Choose View > New Guide. In the dialog box, select Horizontal or Vertical orientation, enter a position, and click OK.

    Drag from the horizontal ruler to create a horizontal guide.
Drag to create a horizontal guide
Dragging to create a horizontal guide

    Hold down Alt (Windows) or Option (Mac OS), and drag from the vertical ruler to create a horizontal guide.

    Drag from the vertical ruler to create a vertical guide.

    Hold down Alt (Windows) or Option (Mac OS), and drag from the horizontal ruler to create a vertical guide.

    Hold down Shift and drag from the horizontal or vertical ruler to create a guide that snaps to the ruler ticks. The pointer changes to a double-headed arrow when you drag a guide.

(Optional) If you want to lock all guides, choose View > Lock Guides.

移动指南

Select the Move tool , or hold down Ctrl (Windows) or Command (Mac OS) to activate the Move tool.
Position the pointer over the guide (the pointer turns into a double-headed arrow).
Move the guide in any of the following ways:

    Drag the guide to move it.

    Change the guide from horizontal to vertical, or vice versa, by holding down Alt (Windows) or Option (Mac OS) as you click or drag the guide.

    Align the guide with the ruler ticks by holding down Shift as you drag the guide. The guide snaps to the grid if the grid is visible and View > Snap To > Grid is selected.

从图片中移除参考线

Do one of the following:

    To remove a single guide, drag the guide outside the image window.

    To remove all guides, choose View > Clear Guides.

设置指南和网格首选项

Do one of the following:

    (Windows) Choose Edit > Preferences > Guides, Grid, & Slices.

    (Mac OS) Choose Photoshop > Preferences > Guides, Grid, & Slices.

For Color, choose a color for the guides, the grid, or both. If you choose Custom, click the color box, choose a color, and click OK.

For Style, choose a display option for guides or the grid, or both.

For Gridline Every, enter a value for the grid spacing. For Subdivisions, enter a value by which to subdivide the grid.

If desired, change the units for this option. The Percent option creates a grid that divides the image into even sections. For example, choosing 25 for the Percent option creates an evenly divided 4‑by‑4 grid.

Click OK.

到顶部 使用智能指南高效工作

智能指南在多种情况下派上用场,例如:

Option (Mac)/Alt (Win) + Drag a Layer: When you drag a layer while keeping the Option (Mac) or Alt (Windows) key pressed, Photoshop displays reference measurement guides showing the distance between the original layer and the duplicate layer. This feature works with both the Move and Path Selection tools.

层之间的距离:原始和复制 层之间的距离:原始和复制

Path measurements: Photoshop displays measurement guides while you're working with paths. Measurement guides are also displayed when you select the Path Selection tool and then drag a path within the same layer.

路径测量 路径测量

Matched Spacing: When you duplicate or move an object, Photoshop displays measurement guides to visually indicate spacing between other objects that match the spacing between the selected object and its immediate neighbors.

Cmd (Mac)/Ctrl (Win) + Hover Over a Layer: You can view measurement guides while working with layers. With one layer selected, hover over another layer with the Cmd (Mac) or Ctrl (Windows) key pressed. You can use arrow keys in conjunction with this feature to nudge the selected layer.

使用图层时的测量指南 使用图层时的测量指南

Distances from the canvas: When you hold down the Cmd (Mac) or Ctrl (Windows) key while hovering outside a shape, Photoshop displays distances from the canvas.

形状与画布的距离 形状与画布的距离

匹配对象之间的间距

【讨论】:

以上是关于Photoshop中鼠标位置的x和y坐标的主要内容,如果未能解决你的问题,请参考以下文章

收藏JS获取鼠标的X,Y坐标位置

MFC编程 -- 获取鼠标坐标位置

js如何获取鼠标在某元素移动时~鼠标指针在元素中的坐标?

JavaScript 中一些概念理解 :clientXclientYoffsetXoffsetYscreenXscreenY

C#winform有2个panel,在右边panel获取鼠标的坐标(x,y),如何传递到panel1上弹出的窗口form2里面呢

client offset screen 的区别