⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chap11_2.htm

📁 着重介绍基于C++的web编程技术
💻 HTM
字号:
<html>

<head>
<title>11.2 位图</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
</head>

<body link="#3973DE" alink="#3973DE">
<font SIZE="5"><b><div align="center"><center>

<table border="0" width="615" cellspacing="0" cellpadding="0">
  <tr>
    </b><td><div align="center"><center><table border="0" width="615" cellpadding="0" cellspacing="0" height="20">
      <tr>
        <td width="377" bgcolor="#15397D" height="20"></td>
        <td width="238" bgcolor="#000000" height="20"><p align="right"></font><span style="text-decoration: none"><a href="../../index.htm"><font color="#FFFFFF">电脑报Visual 
        C++网络教程</font></a></span></td>
      </tr>
    </table>
    </center></div><font FACE="Times New Roman" SIZE="3"><b><p ALIGN="CENTER"></b></font><font color="#3973DE" FACE="Times New Roman" size="4">11.2 </font><font color="#3973DE" size="4">位图</font><font FACE="Times New Roman" size="4"></p>
    <p ALIGN="JUSTIFY"></font><font FACE="Times New Roman" SIZE="3">Windows</font><font SIZE="3">用位图</font><font FACE="Times New Roman" SIZE="3">(Bitmap)</font><font SIZE="3">来显示和保存图像,从单色的到</font><font FACE="Times New Roman" SIZE="3">24</font><font SIZE="3">位真彩色图像都可以存储到位图中。</font><font FACE="Times New Roman" SIZE="3"></p>
    <p ALIGN="JUSTIFY"></font><font SIZE="3">位图实际上是一个像素值阵列,像素阵列存储在一个字节数组中,每一个像素的位数可以是</font><font FACE="Times New Roman" SIZE="3">1</font><font SIZE="3">、</font><font FACE="Times New Roman" SIZE="3">4</font><font SIZE="3">、</font><font FACE="Times New Roman" SIZE="3">8</font><font SIZE="3">或</font><font FACE="Times New Roman" SIZE="3">24</font><font SIZE="3">。单色位图的字节数组中的每一位代表一个像素,</font><font FACE="Times New Roman" SIZE="3">16</font><font SIZE="3">色位图的字节数组中每一个字节存储两个像素,</font><font FACE="Times New Roman" SIZE="3">256</font><font SIZE="3">色的位图每一个字节存储一个像素,而真彩色位图中每个像素用三个字节来表示。在</font><font FACE="Times New Roman" SIZE="3">256</font><font SIZE="3">色以下的位图中存储的像素值实际上是调色板索引,在真彩色位图中存储的则是像素的</font><font FACE="Times New Roman" SIZE="3">RGB</font><font SIZE="3">颜色值。</font><font FACE="Times New Roman" SIZE="3"></p>
    <p ALIGN="JUSTIFY"></font><font SIZE="3">位图分为依赖于设备的位图</font><font FACE="Times New Roman" SIZE="3">(DDB)</font><font SIZE="3">和与设备无关的位图</font><font FACE="Times New Roman" SIZE="3">(DIB)</font><font SIZE="3">,二者有不同的用途。</font><font FACE="Times New Roman" SIZE="3"></p>
    </font><p ALIGN="JUSTIFY"> </p>
    <p ALIGN="JUSTIFY"> </p>
    <div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="615">
      <tr>
        <td><a href="chap11_1.htm">上一页</a></td>
        <td><p align="right"><a href="chap11_3.htm">下一页</a></td>
      </tr>
    </table>
    </center></div><font SIZE="5"><hr noshade color="#3973DE" size="1">
    <p align="center"></font><font size="2" color="#000000">本教程由<a href="http://vcdynasty.yeah.net">Visual C++王朝(Where programmers come together)</a>协助制作<br>
    未经许可,请勿以任何形式复制</font></td>
    <b>
  </tr>
</table>
</center></div>

<p ALIGN="CENTER"></b><font SIZE="5"> </font><font FACE="Times New Roman" SIZE="5"></p>
</font><font FACE="Times New Roman" SIZE="3">

<p></font><b><font SIZE="3"> </font><font FACE="Times New Roman" SIZE="3"></p>
</font></b>

<p><font SIZE="3"> </font><font FACE="Times New Roman" SIZE="3"></p>

<p></font> </p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -