文件名称:jianbianbeijingse
- 所属分类:
- 对话框与窗口
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2013-05-11
- 文件大小:
- 1.48mb
- 下载次数:
- 0次
- 提 供 者:
- wojiu*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在安装程序和许多游戏、屏幕保护程序中,经常有背景渐变的效果(一幅图象渐渐的消失,同时另一幅图象渐渐显示出来)。如何实现这种效果呢?在windows(GDI)环境下,实现位图的淡入淡出的方法有三种:
1. 调色板动画:该方法速度很快,但只能用于256色的图形,而且不易实现渐隐效果,不推荐使用;
2. 模式画刷:该方法实现比较简单,但是效果不如其余两种;
3. 动画法:该方法效果很好,但是速度要稍慢一些。
本例采用“动画法”以两幅位图为例进行讲解,实现从黑色背景中逐渐显现第一幅图片,之后
第一幅图片逐渐消隐、第二幅图片逐渐显现的渐变效果。
-Installer and many games, screen savers, often have the effect of background gradient (an image gradually disappear, while the other one image is gradually displayed). How to achieve this effect? Windows (GDI) environment, bitmap fade in three ways: 1. The palette animation: This method is fast, but can only be used for 256-color graphics, but not easy to achieve fade effect, is not recommended 2. The pattern brush: This method is relatively simple, but the effect is not as good as the other two 3. Animation method: This method works well, but the speed is slightly slower. This example uses " animation" example to explain the two bitmaps, the first picture is gradually emerging from the black background, gradually blanking after the first picture, the second picture is gradually emerging gradient effect.
1. 调色板动画:该方法速度很快,但只能用于256色的图形,而且不易实现渐隐效果,不推荐使用;
2. 模式画刷:该方法实现比较简单,但是效果不如其余两种;
3. 动画法:该方法效果很好,但是速度要稍慢一些。
本例采用“动画法”以两幅位图为例进行讲解,实现从黑色背景中逐渐显现第一幅图片,之后
第一幅图片逐渐消隐、第二幅图片逐渐显现的渐变效果。
-Installer and many games, screen savers, often have the effect of background gradient (an image gradually disappear, while the other one image is gradually displayed). How to achieve this effect? Windows (GDI) environment, bitmap fade in three ways: 1. The palette animation: This method is fast, but can only be used for 256-color graphics, but not easy to achieve fade effect, is not recommended 2. The pattern brush: This method is relatively simple, but the effect is not as good as the other two 3. Animation method: This method works well, but the speed is slightly slower. This example uses " animation" example to explain the two bitmaps, the first picture is gradually emerging from the black background, gradually blanking after the first picture, the second picture is gradually emerging gradient effect.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
源代码\GradualChange.aps
......\GradualChange.clw
......\GradualChange.cpp
......\GradualChange.dsp
......\GradualChange.dsw
......\GradualChange.h
......\GradualChange.ncb
......\GradualChange.opt
......\GradualChange.plg
......\GradualChange.rc
......\GradualChangeDoc.cpp
......\GradualChangeDoc.h
......\GradualChangeView.cpp
......\GradualChangeView.h
......\MainFrm.cpp
......\MainFrm.h
......\ReadMe.txt
......\Resource.h
......\StdAfx.cpp
......\StdAfx.h
......\bmp1.bmp
......\bmp2.bmp
......\res\GradualChange.ico
......\...\GradualChange.rc2
......\...\GradualChangeDoc.ico
......\...\Toolbar.bmp
......\res
源代码