vc实现多格式图像的转换.htm

来自「GDI编程的参考资料」· HTM 代码 · 共 543 行 · 第 1/3 页

HTM
543
字号
                  destPoints; <BR><BR>//在指定区域pdestPoints显示图像 
                  <BR><BR>graphics.DrawImage(&amp;image, pdestPoints, 3); 
                  <BR><BR>} 
                  <BR><BR>在编译上面的程序之前,应该将Gdiplus.lib文件连编到项目中去,否则将会出现“LINK 2001”编译错误。上述程序在Visual 
                  Studio 6.0、Windows 
                  2000/XP下调试通过,它能够显示或转换的图像格式有BMP、GIF、JPEG、Exif、PNG、TIFF、ICON、WMF、EMF等等。需要说明的是,本文只就GDI+编程的基本原理进行了阐述,事实上,GDI+的应用远不止此。 
                  <BR><BR>结束语 
                  <BR><BR>如果对本程序进行些改进,还可以编制出功能更加强大的图像处理程序。本文中所提到的程序,在笔者的主页“国税之家”(http://nationaltax.home.chinaren.com)的“个人世界”中可以下载到。有关GDI+编程的帮助信息,大家可以到微软的MSDN网站去查阅。</P><FONT 
                  color=#999999>本栏文章均来自于互联网,版权归原作者和各发布网站所有,本站收集这些文章仅供学习参考之用。任何人都不能将这些文章用于商业或者其他目的。( 
                  ProgramFan.Com )</FONT><BR><BR>
                  <P align=right>【<A 
                  href="http://www.programfan.com/article/comment.asp?id=1613">对此文发表评论</A>】&nbsp;【<A 
                  href="http://www.programfan.com/club">编程爱好者论坛</A>】 【<A 
                  href="javascript:window.close()">关闭窗口</A>】<BR><BR></P></TD></TR></TBODY></TABLE></DIV></TD></TR>
        <TR>
          <TD>
            <P align=center><IFRAME marginWidth=0 marginHeight=0 
            src="VC实现多格式图像的转换.files/adsense.htm" frameBorder=0 width=566 
            scrolling=no height=75 bordercolor="#000000"></IFRAME>
            <DIV align=center>
            <TABLE cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD vAlign=top width="50%">
                  <DIV align=center>
                  <TABLE borderColor=#999999 cellSpacing=1 cellPadding=0 
                  width="95%" border=1>
                    <TBODY>
                    <TR>
                      <TD width="100%" bgColor=#99ccff height=20>
                        <P align=center><STRONG>本 栏 热 门 文 章</STRONG></P></TD></TR>
                    <TR>
                      <TD width="100%"><FONT style="LINE-HEIGHT: 150%"><FONT 
                        color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=446">VC++ 
                        的串口通讯</A><BR><FONT color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=1079">Winsock开发网络通信程序的经典入门</A><BR><FONT 
                        color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=1966">VC常见数据类型转换详解</A><BR><FONT 
                        color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2882">Visual 
                        C++6.0 API函数操作技巧集</A><BR><FONT color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2398">使用Sniffer截获流经本机网卡的IP数据包</A><BR><FONT 
                        color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2272">用VC++6.0实现PC机与单片机之间串行通信的方法</A><BR><FONT 
                        color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2453">在对话框显示图片的多种方法</A><BR><FONT 
                        color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2353">读取网卡的MAC地址</A><BR><FONT 
                        color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=1613">VC实现多格式图像的转换</A><BR><FONT 
                        color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2169">VC常用数据类型使用转换详解</A><BR></FONT></TD></TR></TBODY></TABLE></DIV></TD>
                <TD vAlign=top width="50%">
                  <DIV align=center>
                  <TABLE borderColor=#999999 cellSpacing=1 cellPadding=0 
                  width="95%" border=1>
                    <TBODY>
                    <TR>
                      <TD width="100%" bgColor=#99ccff height=20>
                        <P align=center><STRONG>本 栏 最 新 文 章</STRONG></P></TD></TR>
                    <TR>
                      <TD width="100%"><FONT style="LINE-HEIGHT: 150%"><FONT 
                        color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2955">VC++编程实现对火焰的计算机动态仿真</A><BR><FONT 
                        color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2959">VC++动态链接库编程之DLL木马</A><BR><FONT 
                        color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2951">VC中利用多线程技术实现线程之间的通信</A><BR><FONT 
                        color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2936">利用OpenGL实现三维绘图</A><BR><FONT 
                        color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2930">基于Visual 
                        C++的Winsock API研究</A><BR><FONT color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2923">基于Visual 
                        C++6.0的DLL编程实现</A><BR><FONT color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2887">VC++中进程与多进程管理的方法</A><BR><FONT 
                        color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2898">Visual 
                        C++ MFC 中常用宏的含义</A><BR><FONT color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2893">使用MFC在应用程序中嵌入MS 
                        Word</A><BR><FONT color=#ff0000>● </FONT><A 
                        href="http://www.programfan.com/article/showarticle.asp?id=2894">在MFC下如何定义全局变量和全局函数</A><BR></FONT></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV></TD>
    <TD vAlign=top width="25%" bgColor=#f0fff0 height=336>
      <DIV align=center>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width="100%" bgColor=#ff6600 height=19>
            <P align=center><STRONG><FONT color=#ffffff>文 章 搜 
            索</FONT></STRONG></P></TD></TR>
        <TR>
          <TD width="100%" height=83>
            <FORM action=searcharticle.asp?classid= method=post target=_blank>
            <DIV align=center>
            <P><BR><FONT color=#ff0000>请输入关键字</FONT></P></DIV>
            <DIV align=center>
            <P><INPUT 
            style="BORDER-RIGHT: rgb(255,0,0) 1px solid; BORDER-TOP: rgb(255,0,0) 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: rgb(255,0,0) 1px solid; COLOR: rgb(0,0,255); BORDER-BOTTOM: rgb(255,0,0) 1px solid; FONT-FAMILY: 宋体" 
            size=10 name=keyword> <INPUT type=submit value=搜索 name=B1></P></DIV>
            <DIV align=center>
            <P><SELECT size=1 name=fw> <OPTION value=1 
              selected>搜索本栏文章</OPTION> <OPTION 
            value=2>搜索全部文章</OPTION></SELECT><BR></P></DIV></FORM></TD></TR>
        <TR>
          <TD width="100%" bgColor=#ff6600 height=20>
            <P align=center><STRONG><FONT 
          color=#ffffff>论坛最新帖</FONT></STRONG></P></TD></TR>
        <TR>
          <TD>
            <SCRIPT language=JavaScript 
            src="VC实现多格式图像的转换.files/news.htm"></SCRIPT>
          </TD></TR>
        <TR>
          <TD></TD></TR>
        <TR>
          <TD bgColor=#ff6500>
            <DIV align=center><STRONG><FONT 
            color=#ffffff>编程爱好者论坛</FONT></STRONG></DIV></TD></TR>
        <TR>
          <TD>
            <FORM>
            <P align=center><BR><SELECT style="BACKGROUND-COLOR: #f5f5f5" 
            onchange="window.open('/club/bbs.asp?bbsid='+this.options[this.selectedIndex].value,'club','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')" 
            size=20 name=select2> <OPTION value=1>站务讨论区</OPTION> <OPTION 
              value=3>新手入门区</OPTION> <OPTION value=4>Visual Basic讨论区</OPTION> 
              <OPTION value=5>C/C++语言讨论区</OPTION> <OPTION value=6>Visual 
              C++讨论区</OPTION> <OPTION value=7>C++ Builder讨论区</OPTION> <OPTION 
              value=8>Delphi讨论区</OPTION> <OPTION value=9>Visual 
              Foxpro讨论区</OPTION> <OPTION value=10>Powerbuilder讨论区</OPTION> 
              <OPTION value=11>PASCAL语言讨论区</OPTION> <OPTION 
              value=12>QBasic讨论区</OPTION> <OPTION value=13>Java讨论区</OPTION> 
              <OPTION value=14>游戏开发讨论区</OPTION> <OPTION 
              value=15>汇编语言讨论区</OPTION> <OPTION value=16>Fortran讨论区</OPTION> 
              <OPTION value=17>WINAPI讨论区</OPTION> <OPTION 
              value=18>软件创意区</OPTION> <OPTION value=20>数据库开发讨论区</OPTION> <OPTION 
              value=22>ASP讨论区</OPTION> <OPTION value=23>PHP讨论区</OPTION> <OPTION 
              value=24>JSP讨论区</OPTION> <OPTION value=25>网站制作讨论区</OPTION> <OPTION 
              value=26>unix&amp;linux开发讨论区</OPTION> <OPTION 
              value=29>程序员人生</OPTION> <OPTION value=30>程序员考试认证</OPTION> <OPTION 
              value=31>.net开发讨论区</OPTION> <OPTION value=32>C#讨论区</OPTION> 
              <OPTION value=40>数据结构与算法</OPTION> <OPTION 
              value=42>编程软件应用区</OPTION> <OPTION value=43>原创软件测试交流区</OPTION> 
              <OPTION value=50>交朋识友区</OPTION> <OPTION value=52>招聘求职区</OPTION> 
              <OPTION value=53>编程书籍交流区</OPTION> <OPTION value=54>信息学奥赛</OPTION> 
              <OPTION value=55>易语言讨论区</OPTION> <OPTION value=56>XML讨论区</OPTION> 
              <OPTION value=57>MATLAB讨论区</OPTION> <OPTION 
              value=100>大学计算机专业课程</OPTION></SELECT> </P></FORM>
            <P><BR></P></TD></TR>
        <TR>
          <TD align=middle><IFRAME id=ksu_style_310 marginWidth=0 
            marginHeight=0 src="VC实现多格式图像的转换.files/style_310.htm" frameBorder=0 
            width=120 scrolling=no height=320></IFRAME></TD></TR>
        <TR>
          <TD></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV><LINK 
href="VC实现多格式图像的转换.files/style.css" type=text/css rel=stylesheet>
<TABLE width=755 align=center border=0>
  <TBODY>
  <TR>
    <TD bgColor=#ffffff>
      <P align=center><IFRAME marginWidth=0 marginHeight=0 
      src="VC实现多格式图像的转换.files/hotad.htm" frameBorder=0 width=755 scrolling=no 
      height=80></IFRAME></P></TD></TR></TBODY></TABLE>
<DIV align=center>
<TABLE cellSpacing=1 cellPadding=0 width=755 border=0>
  <TBODY>
  <TR>
    <TD width="100%" bgColor=#ffffff>
      <HR noShade SIZE=1>

      <P align=center><A href="http://www.programfan.com/intro.asp">关于本站</A> - 
      <A href="http://www.programfan.com/daohang.asp">网站导航</A> - <A 
      href="http://www.programfan.com/ad.asp">广告服务</A> - <A 
      href="http://www.programfan.com/joinus.htm">诚邀加盟</A> - <A 
      href="http://www.programfan.com/contact.asp?subject=关于网站">联系站长</A> 
      -&nbsp;<A href="http://www.programfan.com/link.htm">友情链接</A> -&nbsp;<A 
      href="http://www.programfan.com/sponsor.asp">赞助本站</A><BR>Copyright&copy; 
      1999-2006 Programfan.com. All Rights Reserved<BR>网站制作&amp;维护:Hannibal 
      &nbsp;&nbsp;&nbsp;Email: <A href="mailto:yaoz@163.com">yaoz@163.com</A> 
      &nbsp;&nbsp;网站合作及广告联系:(021)28540908&nbsp;&nbsp;</P></TD></TR></TBODY></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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