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

📄 bitmap_toc.shtml.htm

📁 mfc资料集合5
💻 HTM
字号:
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="Author" CONTENT="Zafir Anjum">
   <TITLE>Bitmap & Palette - Table of Contents</TITLE>
   <META Name="description" Content="Source code for bitmap handling in Windows. Includes transparent bitmaps, embossing, fading, rotation and conversion between DDB & DIB">
   <META Name="keywords" Content="BITMAP BMP DIB DDB TRANSPARENT GRAYSCALE FADE EMBOSS ROTATE PATTERN FILE SHADE WORLD TRANSFORM">
</HEAD>
<body background="../fancyhome/back.gif" tppabs="http://www.codeguru.com/fancyhome/back.gif" bgcolor="#FFFFFF" link="#B50029" vlink="#8E2323" alink="#FF0000">
<table WIDTH="100%">
<tr WIDTH="100%">
<td>
<H1><FONT COLOR="#a0a0ff">Bitmap & Palette</FONT></H1>
<td>
<td width=10%></td>
<td align=right><td>
</tr>
</table>




<HR>

<P>Many of the code snippets have the following bug. I'll update the articles as soon
as I get a chance but meantime here are the two things you should be aware of.
<ol>
<li>Use GlobalLock() and GlobalUnlock() instead of simply assuming the memory handle to
be a pointer.
<li>When selecting a bitmap to a DC, save the previous bitmap in a variable and reselect
it at the end before releasing the DC.
</ol>
<P><P>

<UL>
<LI><A HREF="dimensions.shtml.htm" tppabs="http://www.codeguru.com/bitmap/dimensions.shtml">Getting the dimensions of a bitmap</A>
<p>
<LI><A HREF="draw_bitmap.shtml.htm" tppabs="http://www.codeguru.com/bitmap/draw_bitmap.shtml">Drawing a bitmap</A>
<LI><A HREF="draw_bmp.shtml.htm" tppabs="http://www.codeguru.com/bitmap/draw_bmp.shtml">Drawing a bitmap from a BMP file</A>
<LI><A HREF="bitmap_from_bmp.shtml.htm" tppabs="http://www.codeguru.com/bitmap/bitmap_from_bmp.shtml">Creating a bitmap object from a BMP file</A>
<LI><A HREF="dibsection_from_bmp.shtml.htm" tppabs="http://www.codeguru.com/bitmap/dibsection_from_bmp.shtml">Creating a DIB section from a BMP file</A>
<LI><A HREF="256color_bitmap.shtml.htm" tppabs="http://www.codeguru.com/bitmap/256color_bitmap.shtml">Displaying a 256 color bitmap</A>
<LI><A HREF="copy_to_clipboard.shtml.htm" tppabs="http://www.codeguru.com/bitmap/copy_to_clipboard.shtml">Copying a bitmap to clipboard</A>
<LI><A HREF="transparent_bitmap.shtml.htm" tppabs="http://www.codeguru.com/bitmap/transparent_bitmap.shtml">Drawing a bitmap transparently</A>
<LI><A HREF="ddb_to_dib.shtml.htm" tppabs="http://www.codeguru.com/bitmap/ddb_to_dib.shtml">Converting DDB to DIB</A>
<LI><A HREF="dib_to_ddb.shtml.htm" tppabs="http://www.codeguru.com/bitmap/dib_to_ddb.shtml">Converting DIB to DDB</A>
<LI><A HREF="bitmap_to_file.shtml.htm" tppabs="http://www.codeguru.com/bitmap/bitmap_to_file.shtml">Writing a bitmap to a BMP file</A>
<LI><A HREF="window_to_file.shtml.htm" tppabs="http://www.codeguru.com/bitmap/window_to_file.shtml">Writing a window image to a BMP file</A>
<LI><A HREF="shade_image.shtml.htm" tppabs="http://www.codeguru.com/bitmap/shade_image.shtml">Shade images to look like an active icon</A>
<p>
<LI><A HREF="grayscale.shtml.htm" tppabs="http://www.codeguru.com/bitmap/grayscale.shtml">Drawing an image in grayscale</A>
<LI><A HREF="dither_blt.shtml.htm" tppabs="http://www.codeguru.com/bitmap/dither_blt.shtml">Draw bitmap with grayed 3D effect - Jean-Edouard Lachand-Robert</A>
<LI><A HREF="fadein.shtml.htm" tppabs="http://www.codeguru.com/bitmap/fadein.shtml">Fade in / Fade out Images using Palette animation</A>
<LI><A HREF="grayscale_fadein.shtml.htm" tppabs="http://www.codeguru.com/bitmap/grayscale_fadein.shtml">Fading from color to grayscale and vice-versa</A>
<LI><A HREF="emboss.shtml.htm" tppabs="http://www.codeguru.com/bitmap/emboss.shtml">Emboss text and other shape on your bitmap</A>
<LI><A HREF="emboss_pattern.shtml.htm" tppabs="http://www.codeguru.com/bitmap/emboss_pattern.shtml">Apply a 3D bitmap pattern on text or other shapes</A>
<LI><A HREF="invert_bitmap.shtml.htm" tppabs="http://www.codeguru.com/bitmap/invert_bitmap.shtml">Invert (mirror) a bitmap</A>
<LI><A HREF="invert_bitmap_inplace.shtml.htm" tppabs="http://www.codeguru.com/bitmap/invert_bitmap_inplace.shtml">Invert (mirror) a bitmap in-place - Roger Onslow</A>
<LI><A HREF="rotate_bitmap.shtml.htm" tppabs="http://www.codeguru.com/bitmap/rotate_bitmap.shtml">Rotate a bitmap image</A>
<p>
<LI><A HREF="formview_background.shtml.htm" tppabs="http://www.codeguru.com/bitmap/formview_background.shtml">Painting the background for a CFormView derived class - Adrian Roman</A>
<LI><A HREF="bitmap_picture.shtml.htm" tppabs="http://www.codeguru.com/bitmap/bitmap_picture.shtml">An auto-sizing bitmap picture control - Chris Maunder</A>
<LI><A HREF="bmp_in_mdiclient.shtml.htm" tppabs="http://www.codeguru.com/bitmap/bmp_in_mdiclient.shtml">Bitmap background in MDI Client - Neil A. Van Note</A></LI>
<LI><A HREF="bmp_in_mdiclient2.shtml.htm" tppabs="http://www.codeguru.com/bitmap/bmp_in_mdiclient2.shtml">Bitmap background in MDI Client (2)- David Simpson</A></LI>
<LI><A HREF="logo_bitmap_in_client.shtml.htm" tppabs="http://www.codeguru.com/bitmap/logo_bitmap_in_client.shtml">A logo bitmap inside client frame - Adrian Roman</A>

</UL>

<p>External Links
<ul>
<LI><A HREF="http://web.ukonline.co.uk/Members/julian.smart/code.html">MFC Class for BMP, JPEG, GIF - Julian Smart</A>
</ul>

<CENTER>
<HR></CENTER>

<TABLE COLS=3 WIDTH="100%" >
<TR>
<TD WIDTH="33%"><FONT SIZE=-1><A HREF="../index.htm" tppabs="http://www.codeguru.com/">Goto HomePage</A></FONT></TD>

<TD WIDTH="34%">
<CENTER><FONT SIZE=-2>&copy; 1997 Zafir Anjum</FONT></CENTER>
</TD>

<TD WIDTH="33%">
<DIV ALIGN=right><FONT SIZE=-1>Contact me: <A HREF="mailto:zafir@home.com">zafir@home.com</A>&nbsp;</FONT></DIV>
</TD>
</TR>
</TABLE>
<CENTER><IMG SRC="../cgi/Count.cgi-df=bitmap_toc.cnt" tppabs="http://www.codeguru.com/cgi/Count.cgi?df=bitmap_toc.cnt" ALIGN="BOTTOM" BORDER="0"></CENTER>
</BODY>
</HTML>

⌨️ 快捷键说明

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