5. 如何画直线

本教程基于文本和图像版权所有 © 2002 Seth Burgess。原始教程可以在[TUT01]中找到。

5.1. 动机

图 3.35. 直线示例

直线示例

本教程向您展示如何使用GIMP绘制直线 。强制一条线是直的,是处理鼠标或平板电脑不精确的一种方便的方法,也可以利用计算机的强大能力使事情看起来整洁有序。本教程不使用直线来处理复杂的任务;它旨在展示如何使用它来创建快速简便的直线。

  1. 准备工作

    图 3.36. 介绍Shift

    介绍Shift键
    介绍Shift键

    您的键盘上通常存在两个 Shift 键。他们看起来类似上面的照片。这些键分别位于键盘的左侧和右侧。

    鼠标通常有各种样式,但总有至少两个按键。

  2. 新建图像

    首先,创建一个新图像。任何尺寸都可以。使用文件新建…创建一个新图像。

  3. 选择一个工具

    图 3.37. 工具箱中的绘画工具

    工具箱中的绘画工具

    上面工具箱上的任何一个红色突出显示的工具都可以做线。

  4. 创建起点

    图 3.38. 起点

    起点

    Click on the paintbrush in the toolbox. Click in the image where you want a line to start or end. A single dot will appear on the screen. The size of this dot represents the current brush size, which you can change in the Brush Dialog (see 第 3.2 节 “Brushes Dialog”). Now, let's start drawing a line. Hold down the Shift key, and keep it down.

  5. Draw the Line

    图 3.39. Draw the line

    Draw the line

    有了起点并按下Shift键后,您将看到一条跟随光标的直线。按下鼠标上的第一个按钮(通常是最左边的一个)然后松开。在整个点击鼠标按钮期间,您需要按住 Shift键。

  6. Final Result

    图 3.40. Final result

    Final result

    This is a powerful feature. You can draw straight lines with any of the draw tools. You can even draw more lines at the end of this one. Our last step is to let go of the Shift key, and we are finished. Some examples are shown in the next section. Happy GIMPing!