
6.6 画图工具
画图工具是Windows系统中自带的图形制作和编辑软件,可以创建黑白或彩色的图形,并可将这些图形存为位图(.bmp)文件。在画图工具中,用户可以绘制直线、曲线、矩形、多边形等图形,还可以对图形进行填充颜色及在图画中添加文字等。
6.6.1 启动画图工具
鼠标单击桌面左下角“开始”按钮,在弹出的“开始”菜单中单击“所有程序”→“Windows附件”→“画图”选项,即可启动画图程序,如图6-77、图6-78所示。

图6-77

图6-78
6.6.2 绘制图形
在画图工具中,可以随意绘制线条、形状等,下面以图6-79中所示的图形为例,介绍绘制图形的方法。

图6-79 示例图形
01 打开画图工具,在功能区中“主页”选项卡下的“形状”选项组中选择“椭圆形”,并设置“粗细”为“1px”“颜色1”为“黑色”,如图6-80所示。

图6-80
02 在画布上按住鼠标并拖动,绘制一个大的椭圆形,如图6-81所示。

图6-81
03 继续在大的椭圆形里面画2个小的椭圆形,注意将3个椭圆形顶部交汇于一点,如图6-82所示。

图6-82
04 在“图像”选项组中单击“选择”→“矩形选择”选项,如图6-83所示。

图6-83
05 在绘制好的图形上框选出除雨伞上部轮廓外的剩余部分,如图6-84所示。

图6-84
06 在“图像”选项组中单击“选择”→“删除”选项,将多余的部分删除,如图6-85所示。

图6-85
07 在“形状”选项组中选择“直线”,并设置“粗细”为“1px”,“颜色1”为“黑色”,如图6-86所示。

图6-86
08 然后在雨伞轮廓中间从上而下竖直画一条直线,注意直线要与伞轮廓的边缘对齐,如图6-87所示。

图6-87
09 在“形状”选项组中选择“曲线”,并设置“粗细”为“1px”,“颜色1”为“黑色”,如图6-88所示。

图6-88
10 用曲线工具把雨伞轮廓底部的边连起来,首先在左侧的第1条线和第2条线底部绘制线条,将这两条线连起来,然后单击曲线的中点并向上拉,做出弧的形状,如图6-89所示。

图6-89
11 利用同样的方法将剩余的每两条线之间分别连起来,并做出弧的形状,这样雨伞的底边就完成了,如图6-90所示。

图6-90
12 在“形状”选项组中选择“直线”,并设置“粗细”为“5px”,“颜色1”为“褐色”,如图6-91所示。

图6-91
13 在雨伞底边的中点处竖直向下画一条直线,作为伞柄,如图6-92所示。

图6-92
14 在“形状”选项组中选择“曲线”,并设置“粗细”为“5px”,“颜色1”为“褐色”,如图6-93所示。

图6-93
15 在伞柄底部向左水平画一条短线条,并单击曲线的中点向下拉,做出弧的形状,可以多次进行调整,使弧度更完美,作为伞把,如图6-94所示。

图6-94
16 在“工具”选项组中选择“用颜色填充”工具,然后设置“颜色1”为“橙色”,如图6-95所示。

图6-95
17 单击伞面上的各区域,可以看到已填充上颜色。至此,雨伞就绘制完成了,如图6-96所示。

图6-96
6.6.3 在图形中添加文字
在画图程序中不仅可以创建各种图形,还可输入文字信息,文本的颜色由前景颜色定义。下面介绍在图形中添加文字的具体操作步骤。
01 继续上一小节的操作。在“工具”选项组中选择“文本”工具,然后设置“颜色1”为“青绿色”,如图6-97所示。

图6-97
02 在画布上单击,则出现文字编辑区,同时功能区中出现“文本工具”→“文本”选项卡,设置“字体”和“背景”,如图6-98所示。

图6-98
03 在文字编辑区中输入文字,输入完成后单击空白区域,如图6-99所示。

图6-99
04 在“图像”选项组中单击“选择”→“矩形选择”选项,然后框选中文字,如图6-100所示。

图6-100
05 将鼠标置于框选的区域中,当鼠标指针变为形状时,按住鼠标拖动文字,拖动到合适的位置后,松开鼠标即可,如图6-101所示。

图6-101
06 单击空白区域取消文字的选中状态,此时可以看到为图形添加文字后的效果,如图6-102所示。

图6-102
6.6.4 保存图片
当图形绘制完成后,就可以将图形保存下来以备以后使用了。保存图形的方法有多种,下面介绍具体的操作。
方法一:
单击画图工具标题栏最左侧快速访问工具栏中的“保存”按钮,弹出“保存为”对话框,设置保存位置、文件名,然后在“保存类型”下拉列表中选择要保存的类型,最后单击“保存”按钮,即可保存图形,如图6-103所示。

图6-103
方法二:
单击画图工具功能区左上角的“文件”按钮,在弹出的菜单中单击“保存”按钮,或单击“另存为”按钮,直接选择要保存的类型,单击这两个按钮都可以弹出“保存为”对话框,然后按照方法一中介绍的方法保存图形即可,如图6-104、图6-105所示。

图6-104

图6-105
方法三:
绘制完图形后,可以直接单击右上角的“关闭”按钮,弹出“画图”对话框,提示是否要保存更改,单击“保存”按钮,可弹出“保存为”对话框,也可保存文档,如图6-106所示。

图6-106