📄 codeguru going from a jpg-gif-bmp file to a hbitmap file using plain api.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0071)http://www.codeguru.com/Cpp/G-M/bitmap/comments.php/c4935/?thread=55124 -->
<HTML xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>CodeGuru: Going from a JPG/GIF/BMP File to a HBITMAP File Using Plain API</TITLE>
<META
content="Loading an image file into a HBITMAP handle without using MFC. By Michael Chourdakis."
name=description>
<META content="Michael Chourdakis" name=Author>
<META content="" name=keywords>
<META content=20030611 name=date>
<META content=en-US name=MS.LOCALE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content=kbArticle name=Search.TopicType>
<META content="Wed, 11 Jun 2003 00:00:00 -0400" name=Search.PublishDate>
<META content="Wed, 11 Jun 2003 00:00:00 -0400" name=Search.ReviseDate>
<META content=100 name=Search.UserRating><LINK media=all
href="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/flyout.css"
type=text/css rel=stylesheet><!--[if lte IE 6]><LINK media=all
href="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/flyout_ie.css"
type=text/css rel=stylesheet><![endif]--><LINK
href="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/newstyle.css"
type=text/css rel=stylesheet>
<SCRIPT language=JavaScript type=text/javascript>
<!--
function show(object) {
if (document.getElementById) {
document.getElementById(object).style.visibility = 'visible';
}
else if (document.layers && document.layers[object]) {
document.layers[object].visibility = 'visible';
}
else if (document.all) {
document.all[object].style.visibility = 'visible';
}
}
function hide(object) {
if (document.getElementById) {
document.getElementById(object).style.visibility = 'hidden';
}
else if (document.layers && document.layers[object]) {
document.layers[object].visibility = 'hidden';
}
else if (document.all) {
document.all[object].style.visibility = 'hidden';
}
}
//-->
</SCRIPT>
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=4 MARGINHEIGHT="4" MARGINWIDTH="0">
<SCRIPT language=JavaScript1.2
src="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/HM_Loader.js"
type=text/javascript></SCRIPT>
<CENTER><A
href="http://www.codeguru.com/RealMedia/ads/click_lx.cgi/ew/ewsoftware/www.codeguru.com/cpp/g-m/bitmap/comments/c4935/i/1088236311/house_ribbon/OasDefault/HP_ProCurve_GEMS_3a/perimeter.jpg/63623963643532363435396231633230"
target=_top><IMG alt=""
src="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/perimeter.jpg"
border=0></A><IMG height=1
src="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/63623963643532363435396231633230.gif"
width=1 border=0>
<P><IFRAME marginWidth=0 marginHeight=0
src="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/search.htm"
frameBorder=0 width=750 scrolling=no height=100></IFRAME><IMG height=1
src="G:\DownloadSource\OpenCV\study\CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files\63623963643532363435396231633230(1).gif"
width=1>
<P></CENTER><!--Top Navigation-->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD><!--#include virtual="/icom_includes/earthweb/headers/codeguru_header.html"--></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD
background="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/top-bg.gif">
<TABLE cellSpacing=0 cellPadding=0 width=780 border=0>
<TBODY>
<TR>
<TD width=272><A href="http://www.codeguru.com/"><IMG height=82
alt=CodeGuru hspace=0
src="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/logo.gif"
width=272 border=0></A></TD>
<TD
background="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/top-bg-2.gif">
<TABLE cellSpacing=0 cellPadding=0 width=508
background="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/c4935.htm"
border=0>
<TBODY>
<TR>
<TD width=508 colSpan=2><IMG height=1 alt="" hspace=0
src="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/sp.gif"
width=508 border=0></TD></TR>
<TR>
<FORM name=myform
action=http://search.internet.com/www.codeguru.com method=post>
<TD width=1><IMG height=54 alt="" hspace=0
src="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/sp.gif"
width=1 border=0></TD>
<TD><A href="http://www.earthweb.com/"><IMG height=20
alt=Earthweb
src="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/eweb.gif"
width=135 align=right border=0></A> <INPUT type=hidden
name=starget> <INPUT type=hidden name=IC_QueryDatabase> <IMG
height=23 alt=Search
src="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/search.gif"
width=50 align=absMiddle border=0> <SELECT
style="FONT-WEIGHT: normal; FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: verdana, arial, sans-serif; BACKGROUND-COLOR: #ffffff"
name=searchsite> <OPTION value=CodeGuru
selected>CodeGuru.com</OPTION> <OPTION
value=CodeGuru-Articles>---Articles</OPTION> <OPTION
value=CodeGuru-Comments>---Comments</OPTION> <OPTION
value=CodeGuru-Forums>---Forums</OPTION> <OPTION
value=Earthweb>Earthweb</OPTION></SELECT> <INPUT size=10
name=IC_QueryText> <INPUT type=image height=23 alt=Go width=40
src="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/go.gif"
align=absMiddle value=Go! border=0 name=submit> </TD></TR></FORM>
<TR>
<TD width=1><IMG height=27 alt="" hspace=0
src="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/sp.gif"
width=1 border=0></TD>
<TD align=middle><IMG height=14 hspace=0
src="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/eweb-nav.gif"
width=330 useMap=#eweb_nav_Map border=0> <MAP
name=eweb_nav_Map><AREA shape=RECT alt=Forums
coords=253,0,330,14
href="http://www.codeguru.com/forum"><AREA shape=RECT
alt=Wireless coords=185,0,244,14
href="http://www.developer.com/ws/"><AREA shape=RECT
alt=Jars coords=145,0,176,14
href="http://www.jars.com/"><AREA shape=RECT alt=Gamelan
coords=77,0,136,14
href="http://www.developer.com/java/"><AREA shape=RECT
alt=Developer.com coords=0,0,69,14
href="http://www.developer.com/"></MAP></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><!--End Top-->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top width="1%"
background="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/leftnav-bg.gif"><!--Left Navigation-->
<TABLE cellSpacing=0 cellPadding=0 width=165 bgColor=#999999 border=0>
<TBODY>
<TR>
<TD><A href="http://www.codeguru.com/"><IMG height=30
alt="CodeGuru Navigation"
src="CodeGuru Going from a JPG-GIF-BMP File to a HBITMAP File Using Plain API_files/leftnav-top.gif"
width=165 border=0></A></TD></TR>
<TR>
<TD>
<DIV class=menu>
<UL>
<LI><A class=hide href="http://www.codeguru.com/Cpp"><B>Visual C++
/ C++</B></A><!--[if lte IE 6]> <A
href="http://www.codeguru.com/Cpp"><B>Visual C++ / C++</B>
<TABLE>
<TBODY>
<TR>
<TD><![endif]-->
<UL>
<LI><A class=hide
href="http://www.codeguru.com/cpp/cpp">C++ <B>»</B></A><!--[if lte IE 6]> <A class=sub
href="http://www.codeguru.com/cpp/cpp">C++ <B>»</B>
<TABLE>
<TBODY>
<TR>
<TD><![endif]-->
<UL>
<LI><A
href="http://www.codeguru.com/cpp/cpp/algorithms">Algorithms
& Formulas</A> </LI>
<LI><A
href="http://www.codeguru.com/cpp/cpp/cpp_mfc">C++
& MFC</A> </LI>
<LI><A
href="http://www.codeguru.com/cpp/cpp/date_time">Date
& Time</A> </LI>
<LI><A
href="http://www.codeguru.com/cpp/cpp/cpp_managed">Managed
C++</A> </LI>
<LI><A
href="http://www.codeguru.com/cpp/cpp/string">String
Programming</A>
</LI></UL><!--[if lte IE 6]></TD></TR></TBODY></TABLE></A><![endif]--></LI>
<LI><A class=hide
href="http://www.codeguru.com/cpp/com-tech">COM-based
Technologies <B>»</B></A><!--[if lte IE 6]> <A class=sub
href="http://www.codeguru.com/cpp/com-tech">COM-based
Technologies <B>»</B>
<TABLE>
<TBODY>
<TR>
<TD><![endif]-->
<UL>
<LI><A
href="http://www.codeguru.com/cpp/com-tech/atl">ATL
& WTL Programming</A> </LI>
<LI><A
href="http://www.codeguru.com/cpp/com-tech/activex">ActiveX
Programming</A> </LI>
<LI><A
href="http://www.codeguru.com/cpp/com-tech/complus">COM+</A>
</LI>
<LI><A
href="http://www.codeguru.com/cpp/com-tech/shell">Shell
Programming</A>
</LI></UL><!--[if lte IE 6]></TD></TR></TBODY></TABLE></A><![endif]--></LI>
<LI><A class=hide
href="http://www.codeguru.com/cpp/controls">Controls
<B>»</B></A><!--[if lte IE 6]> <A class=sub
href="http://www.codeguru.com/cpp/controls">Controls
<B>»</B>
<TABLE>
<TBODY>
<TR>
<TD><![endif]-->
<UL>
<LI><A
href="http://www.codeguru.com/cpp/controls/buttonctrl">Button
Control</A> </LI>
<LI><A
href="http://www.codeguru.com/cpp/controls/combobox">ComboBox</A>
</LI>
<LI><A
href="http://www.codeguru.com/cpp/controls/editctrl">Edit
Control</A> </LI>
<LI><A
href="http://www.codeguru.com/cpp/controls/imagelist">ImageList
Control</A> </LI>
<LI><A
href="http://www.codeguru.com/cpp/controls/listbox">ListBox
Control</A> </LI>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -