📄 chp1.htm
字号:
font-family:"Times New Roman"'><o:p></o:p></span></p>
<p style='margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:
inter-ideograph;line-height:18.0pt'><span lang=ZH-CN style='font-size:10.5pt'>我们称这种显示器为位映象设备。所谓位映象,就是指一个二维的象素矩阵,而位图就是采用位映象方法显示和存储的图象。举个例子,图</span><span
style='font-size:10.5pt;font-family:"Times New Roman"'>1.1</span><span
lang=ZH-CN style='font-size:10.5pt'>是一幅普通的黑白位图,图</span><span style='font-size:
10.5pt;font-family:"Times New Roman"'>1.2</span><span lang=ZH-CN
style='font-size:10.5pt'>是被放大后的图,图中每个方格代表了一个象素。我们可以看到:整个骷髅就是由这样一些黑点和白点组成的。</span><span
style='font-size:10.5pt;font-family:"Times New Roman"'><o:p></o:p></span></p>
<div>
<table border=0 cellspacing=0 cellpadding=0 style='mso-cellspacing:0cm;
mso-padding-alt:0cm 0cm 0cm 0cm'>
<tr>
<td width=276 valign=bottom style='width:207.0pt;padding:0cm 0cm 0cm 0cm'>
<p class=a style='line-height:18.0pt'><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_i1026" type="#_x0000_t75" alt="" style='width:36pt;
height:36pt'>
<v:imagedata src="./chp1.files/image001.gif" o:href="http://www-scf.usc.edu/~flv/ipbook/chap01.files/image001.gif"/>
</v:shape><![endif]--><![if !vml]><img width=48 height=48
src="./chp1.files/image001.gif" v:shapes="_x0000_i1026"><![endif]></p>
<p class=a style='line-height:18.0pt'><b><span lang=ZH-CN style='font-family:
宋体'>图</span>1.1 </b><b><span lang=ZH-CN style='font-family:
宋体'>骷髅</span></b></p>
</td>
<td width=276 valign=bottom style='width:207.0pt;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><b><span
style='font-size:10.5pt;font-family:"Times New Roman"'><!--[if gte vml 1]><v:shape
id="_x0000_i1025" type="#_x0000_t75" alt="" style='width:117.75pt;height:132.75pt'>
<v:imagedata src="./chp1.files/image002.jpg" o:href="http://www-scf.usc.edu/~flv/ipbook/chap01.files/image003.jpg"/>
</v:shape><![endif]--><![if !vml]><img width=157 height=177
src="./chp1.files/image002.jpg" v:shapes="_x0000_i1025"><![endif]></span></b><span
style='font-size:10.5pt;font-family:"Times New Roman"'><o:p></o:p></span></p>
<p align=center style='text-align:center;line-height:18.0pt'><b><span
lang=ZH-CN style='font-size:10.5pt'>图</span></b><b><span style='font-size:
10.5pt;font-family:"Times New Roman"'>1.2 </span></b><b><span
lang=ZH-CN style='font-size:10.5pt'>放大后的骷髅位图</span></b><span
style='font-size:10.5pt;font-family:"Times New Roman"'><o:p></o:p></span></p>
</td>
</tr>
</table>
</div>
<p style='margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:
inter-ideograph;line-height:18.0pt'><span lang=ZH-CN style='font-size:10.5pt'>那么,彩色图是怎么回事呢?</span><span
style='font-size:10.5pt;font-family:"Times New Roman"'><o:p></o:p></span></p>
<p style='margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:
inter-ideograph;line-height:18.0pt'><span lang=ZH-CN style='font-size:10.5pt'>我们先来说说三元色</span><span
style='font-size:10.5pt;font-family:"Times New Roman"'>RGB</span><span
lang=ZH-CN style='font-size:10.5pt'>概念。</span><span style='font-size:10.5pt;
font-family:"Times New Roman"'><o:p></o:p></span></p>
<p style='margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:
inter-ideograph;line-height:18.0pt'><span lang=ZH-CN style='font-size:10.5pt'>我们知道,自然界中的所有颜色都可以由红、绿、蓝</span><span
style='font-size:10.5pt;font-family:"Times New Roman"'>(R</span><span
lang=ZH-CN style='font-size:10.5pt'>,</span><span style='font-size:10.5pt;
font-family:"Times New Roman"'>G</span><span lang=ZH-CN style='font-size:10.5pt'>,</span><span
style='font-size:10.5pt;font-family:"Times New Roman"'>B)</span><span
lang=ZH-CN style='font-size:10.5pt'>组合而成。有的颜色含有红色成分多一些,如深红;有的含有红色成分少一些,如浅红。针对含有红色成分的多少,可以分成</span><span
style='font-size:10.5pt;font-family:"Times New Roman"'>0</span><span
lang=ZH-CN style='font-size:10.5pt'>到</span><span style='font-size:10.5pt;
font-family:"Times New Roman"'>255</span><span lang=ZH-CN style='font-size:
10.5pt'>共</span><span style='font-size:10.5pt;font-family:"Times New Roman"'>256</span><span
lang=ZH-CN style='font-size:10.5pt'>个等级,</span><span style='font-size:10.5pt;
font-family:"Times New Roman"'>0</span><span lang=ZH-CN style='font-size:10.5pt'>级表示不含红色成分;</span><span
style='font-size:10.5pt;font-family:"Times New Roman"'>255</span><span
lang=ZH-CN style='font-size:10.5pt'>级表示含有</span><span style='font-size:10.5pt;
font-family:"Times New Roman"'>100%</span><span lang=ZH-CN style='font-size:
10.5pt'>的红色成分。同样,绿色和蓝色也被分成</span><span style='font-size:10.5pt;font-family:
"Times New Roman"'>256</span><span lang=ZH-CN style='font-size:10.5pt'>级。这种分级概念称为量化。</span><span
style='font-size:10.5pt;font-family:"Times New Roman"'><o:p></o:p></span></p>
<p style='margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:
inter-ideograph;line-height:18.0pt'><span lang=ZH-CN style='font-size:10.5pt'>这样,根据红、绿、蓝各种不同的组合我们就能表示出</span><span
style='font-size:10.5pt;font-family:"Times New Roman"'>256×256×256</span><span
lang=ZH-CN style='font-size:10.5pt'>,约</span><span style='font-size:10.5pt;
font-family:"Times New Roman"'>1600</span><span lang=ZH-CN style='font-size:
10.5pt'>万种颜色。这么多颜色对于我们人眼来说已经足够丰富了。</span><span style='font-size:10.5pt;
font-family:"Times New Roman"'><o:p></o:p></span></p>
<p align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;
line-height:18.0pt'><b><span lang=ZH-CN style='font-size:10.5pt'>表</span></b><b><span
style='font-size:10.5pt;font-family:"Times New Roman"'>1.1
</span></b><b><span lang=ZH-CN style='font-size:10.5pt'>常见颜色的</span></b><b><span
style='font-size:10.5pt;font-family:"Times New Roman"'>RGB</span></b><b><span
lang=ZH-CN style='font-size:10.5pt'>组合值</span></b><span style='font-size:10.5pt;
font-family:"Times New Roman"'><o:p></o:p></span></p>
<div align=center>
<table border=1 cellspacing=0 cellpadding=0 width="75%" style='width:75.0%;
mso-cellspacing:0cm;mso-padding-alt:0cm 0cm 0cm 0cm'>
<tr>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p class=a style='line-height:18.0pt'><span lang=ZH-CN style='font-family:
宋体'>颜色</span></p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p class=a style='line-height:18.0pt'>R</p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p class=a style='line-height:18.0pt'>G</p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p class=a style='line-height:18.0pt'>B</p>
</td>
</tr>
<tr>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
lang=ZH-CN style='font-size:10.5pt'>红</span><span style='font-size:10.5pt;
font-family:"Times New Roman"'><o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
style='font-size:10.5pt;font-family:"Times New Roman"'>255<o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
style='font-size:10.5pt;font-family:"Times New Roman"'>0<o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
style='font-size:10.5pt;font-family:"Times New Roman"'>0<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
lang=ZH-CN style='font-size:10.5pt'>蓝</span><span style='font-size:10.5pt;
font-family:"Times New Roman"'><o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
style='font-size:10.5pt;font-family:"Times New Roman"'>0<o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
style='font-size:10.5pt;font-family:"Times New Roman"'>255<o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
style='font-size:10.5pt;font-family:"Times New Roman"'>0<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
lang=ZH-CN style='font-size:10.5pt'>绿</span><span style='font-size:10.5pt;
font-family:"Times New Roman"'><o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
style='font-size:10.5pt;font-family:"Times New Roman"'>0<o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
style='font-size:10.5pt;font-family:"Times New Roman"'>0<o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
style='font-size:10.5pt;font-family:"Times New Roman"'>255<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
lang=ZH-CN style='font-size:10.5pt'>黄</span><span style='font-size:10.5pt;
font-family:"Times New Roman"'><o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
style='font-size:10.5pt;font-family:"Times New Roman"'>255<o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
style='font-size:10.5pt;font-family:"Times New Roman"'>255<o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
style='font-size:10.5pt;font-family:"Times New Roman"'>0<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
lang=ZH-CN style='font-size:10.5pt'>紫</span><span style='font-size:10.5pt;
font-family:"Times New Roman"'><o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.0%;padding:0cm 0cm 0cm 0cm'>
<p align=center style='text-align:center;line-height:18.0pt'><span
style='font-size:10.5pt;font-family:"Times New Roman"'>255<o:p></o:p></span></p>
</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -