Fading A Bitmap / PictureBox - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
The code works by creating a memory compatible DC and Bitmap to that of the picture within the PictureBox. The PictureBox is then cleared and has it's background set to various shades of gray (eventually black) - the bitmap is then 'blitted' to the PictureBox and each pixel is 'AND'ed with the background colour to achieve the fade effect.
这段代码可以创建一个内存兼容的DC和一个位图,这个位图可以位于一个图片框中。接着清除图片框的内容,将它的背景设置成各种灰度级的灰色(最终为黑色),再将这一位图复制到图片框,每个像素和背景色进行“与”运算,取得色彩渐变的效果。
来源: http://www.codeguru.com/vb_graphics/2007.shtml |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
2007_fadebmp |
 1.1  |
2004-03-07 |
下载 |
|
|