~ubuntu-branches/ubuntu/vivid/gimp-help/vivid

« back to all changes in this revision

Viewing changes to html/zh_CN/ch02s04.html

  • Committer: Bazaar Package Importer
  • Author(s): Ari Pollak
  • Date: 2005-05-08 18:04:08 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050508180408-mjwl3kmjczfnmu5v
Tags: 2+0.7-5
Fix doc-base entry for gimp-help-zh-cn to point to correct directory
name (Closes: #308228)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
3
<html xmlns="http://www.w3.org/1999/xhtml">
 
4
  <head>
 
5
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 
6
    <title>4. 了解图像</title>
 
7
    <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
 
8
    <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
 
9
    <meta name="generator" content="DocBook XSL Stylesheets V1.66.1" />
 
10
    <link rel="start" href="index.html" title="&#10;      &#10;    " />
 
11
    <link rel="up" href="ch02.html" title="第 2 章 使用 GIMP" />
 
12
    <link rel="prev" href="ch02s03s05.html" title="3.5. GIMP 基本概念" />
 
13
    <link rel="next" href="ch02s04s02.html" title="4.2. 快速蒙板" />
 
14
  </head>
 
15
  <body>
 
16
    <div xmlns="" class="navheader">
 
17
      <table width="100%" summary="Navigation header">
 
18
        <tr>
 
19
          <th colspan="3" align="center" id="chaptername">4. 了解图像</th>
 
20
        </tr>
 
21
        <tr>
 
22
          <td width="20%" align="left"><a accesskey="p" href="ch02s03s05.html">上一页</a> </td>
 
23
          <th width="60%" align="center" id="sectionname">4. 了解图像</th>
 
24
          <td width="20%" align="right"> <a accesskey="n" href="ch02s04s02.html">下一页</a></td>
 
25
        </tr>
 
26
      </table>
 
27
      <hr />
 
28
    </div>
 
29
    <div class="sect1" lang="zh_CN" xml:lang="zh_CN">
 
30
      <div class="titlepage">
 
31
        <div>
 
32
          <div>
 
33
            <h2 class="title" style="clear: both"><a id="gimp-using-images"></a>4. 了解图像</h2>
 
34
          </div>
 
35
        </div>
 
36
      </div>
 
37
      <div class="sect2" lang="zh_CN" xml:lang="zh_CN">
 
38
        <div class="titlepage">
 
39
          <div>
 
40
            <div>
 
41
              <h3 class="title"><a id="id3280418"></a>4.1. 图像格式</h3>
 
42
            </div>
 
43
          </div>
 
44
        </div>
 
45
        <p>
 
46
      <span class="emphasis"><em>图像</em></span>常让人联想到和一个单独显示窗口相关的东西,或一个单独的文件如一个 JPEG 文件,不过一个真正的 Gimp 图像一个相当复杂的结构,包括一堆图层和许多其它类型的对象:一个选区蒙板,一系列通道和路径,一个“撤消”历史等。我们将在这一节对一个图像的所有元素和能用它们干什么来一个仔细的了解。
 
47
    </p>
 
48
        <p>
 
49
      一个图像最基本的属性就是它的<span class="emphasis"><em>模式</em></span>。这有三种模式:RGB,灰度和索引。RGB 代表红-绿-蓝,代表图像上的每个点用一个“红色”色阶,一个“绿色”色阶和一个“蓝色”色阶表示。人类能辨别的每种颜色都能用红,绿和蓝组合来表现,每一个颜色通道都有 256 种可能的亮度程度。
 
50
    </p>
 
51
        <p>
 
52
      对一个灰度的图像,每个点由从 0 (黑色)到 255 (白色)的亮度值来表现,其中间的值来表现不同程度的灰。
 
53
    </p>
 
54
        <p>
 
55
      一个灰度图像和一个 RGB 图像最本质的区别就是它们“颜色通道”的数量:一个灰度图像只有一个;一个 RGB 图像有三个。一个 RGB 图像可以认为是三个灰度图像的叠加,一个为红色,一个为绿色,另一个为蓝色。
 
56
    </p>
 
57
        <p>
 
58
      准确的说,RGB 和灰度图像都有一个附加的颜色通道,叫做 <span class="emphasis"><em>alpha</em></span> 通道,它代表不透明度。当选定的图层其上位置的不透明度为零,图层就完全是透明的,这样那个位置的颜色由它下面是什么决定。当 alpha 为最大值,图层就是不透明的,该位置的颜色有图层颜色决定。其中间的 alpha 值用来区分不同的透明程度:该位置的颜色就由一定比例的图层颜色和图层下面的颜色决定。
 
59
   </p>
 
60
        <p>
 
61
      Gimp 中,每个颜色通道包括 alpha 通道其可能的值都在 0 到 255 之间;用计算机术语说就是 8 位深度。一些数码相机能产生每个颜色通道 16 位深度的图像文件。Gimp 无法读取这种文件而不丢失分辨率。大部分情况下,那样的效果太细微以至人眼无法查觉,但在一些情况中,主要是缓慢颜色渐变的大片区域,还是能够查觉到其差别。
 
62
    </p>
 
63
        <p>
 
64
      第三种类型,<span class="emphasis"><em>索引</em></span>图像,要了解它有点复杂。在一个索引图像种,只使用有限的一部分不连续的色彩,常常是 256 色或更少。这些颜色来之图像的“颜色表”,并且图像中的每个点都从颜色表中获取颜色。索引图像的优点在于能在计算机内部表现,这种方法消耗相对少的内存。索引图像在十年前使用很普遍。随着时间的前进,它们被使用得越来越少,不过仍然足够重要让 Gimp 支持它。(而且,还有一些重要的图像处理方式在索引图像上比在连续颜色的 RGB 图像上更容易实现。)
 
65
    </p>
 
66
        <p>
 
67
      一些非常常见的文件类型(包括 GIF)在 Gimp 中打开时都是作为索引图像。许多 Gimp 工具对索引图像工作地不好--而且许多滤镜完全无法使用--因为它只有有限数量的可用颜色。因此,最好在进行这些操作之前,将图像转换为 RGB 图像。如果有必要,您也能在准备保存它时转换回来成索引模式。
 
68
    </p>
 
69
        <p>
 
70
      Gimp 是从一种图像类型转换为另一种类型变得容易,使用图像菜单中的<a href="ch05s05s02.html" title="5.2. 模式">模式</a>命令。一些类型转换,比如 RGB 到灰度或索引会丢失信息,而且当转换回来时也无法恢复。
 
71
    </p>
 
72
        <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
 
73
          <table border="0" summary="Note">
 
74
            <tr>
 
75
              <td rowspan="2" align="center" valign="top" width="25">
 
76
                <img alt="[注意]" src="../images/note.png" />
 
77
              </td>
 
78
              <th align="left">注意</th>
 
79
            </tr>
 
80
            <tr>
 
81
              <td colspan="2" align="left" valign="top">
 
82
                <p>
 
83
      如果您尝试对一个图像使用滤镜,而在菜单上却是灰色的,常常是因为您操作的图像(或更明确的,是图层)是错误的模式。许多滤镜无法对索引图像使用。一些只能对 RGB 或灰度图像使用。一些却需要有或没有一个 alpha 通道。一般的解决方法就是转换图像到另一个模式,最通常是 RGB。
 
84
      </p>
 
85
              </td>
 
86
            </tr>
 
87
          </table>
 
88
        </div>
 
89
      </div>
 
90
    </div>
 
91
    <div class="navfooter">
 
92
      <hr />
 
93
      <table width="100%" summary="Navigation footer">
 
94
        <tr>
 
95
          <td width="40%" align="left"><a accesskey="p" href="ch02s03s05.html">上一页</a> </td>
 
96
          <td width="20%" align="center">
 
97
            <a accesskey="u" href="ch02.html">上一级</a>
 
98
          </td>
 
99
          <td width="40%" align="right"> <a accesskey="n" href="ch02s04s02.html">下一页</a></td>
 
100
        </tr>
 
101
        <tr>
 
102
          <td width="40%" align="left" valign="top">3.5. GIMP 基本概念 </td>
 
103
          <td width="20%" align="center">
 
104
            <a accesskey="h" href="index.html">起始页</a>
 
105
          </td>
 
106
          <td width="40%" align="right" valign="top"> 4.2. 快速蒙板</td>
 
107
        </tr>
 
108
      </table>
 
109
    </div>
 
110
  </body>
 
111
</html>