Reprinted please indicate the source, original address: http://blog.csdn.net/morewindows/article/details/8696722
Welcome to Weibo: http://weibo.com/MoreWindows
For Windows interface programming, the bitmap display special effect series directory is as follows:
1. The ninth part of Windows Interface Programming: bitmap display effect staggered
Http://blog.csdn.net/morewindows/article/details/8696720
2. Windows Interface Programming Article 10 bitmap display special effect blinds
Http://blog.csdn.net/morewindows/article/details/8696722
3. Windows Interface Programming 11th special bitmap display random block effects
Http://blog.csdn.net/morewindows/article/details/8696724
4. Windows Interface Programming 12th bitmap display special effects fly into effect and stretch Effect
Http://blog.csdn.net/morewindows/article/details/8696726
5. Windows Interface Programming 13th bitmap display special effects collection
Http://blog.csdn.net/morewindows/article/details/8696730
This article Windows Interface Programming tenth bitmap display special effect blinds effect will explain the bitmap shutter display effect. As shown in:
Horizontal blinds (picture cannot be opened, please visit http://blog.csdn.net/morewindows/article/details/8696722)
Vertical blinds (picture cannot be opened, please visit http://blog.csdn.net/morewindows/article/details/8696722)
In programming, the blinds separate several images, and each of them continues to expand. The following code is provided:
// Shutter effect-level // Windows Interface Programming tenth bitmap display special effect shutter effect // http://blog.csdn.net/morewindows/article/details/8696722void animatedraw_jalousiehorizontal (HDC, HDC hdcmem, int nwidth, int nheight, uint nintervaltime = 15, uint njalousienum = 10) {int njalousieheight; njalousieheight = nheight/njalousienum; // int I, j; for (I = 0; I <= njalousieheight; I ++) {for (j = 0; j <njalousienum; j ++) // each window {bitblt (HDC, 0, J * njalousieheight, nwidth, I, hdcmem, 0, J * njalousieheight, srccopy);} Sleep (nintervaltime);} bitblt (HDC, 0, 0, nwidth, nheight, hdcmem, 0, 0, 0, srccopy);} // shutter effect-vertical // Windows Interface Programming tenth bitmap display special effect shutter effect // http://blog.csdn.net/morewindows/article/details/8696722void animatedraw_jalousievertical (HDC, HDC hdcmem, int nwidth, int nheight, uint nintervaltime = 15, uint njalousienum = 10) {int nstep; nstep = nwidth/njalousienum; // The height of each window int I, j; for (I = 0; I <= nstep; I ++) {for (j = 0; j <njalousienum; j ++) // each window {bitblt (HDC, J * nstep, 0, i, nheight, hdcmem, J * nstep, 0, srccopy);} Sleep (nintervaltime);} bitblt (HDC, 0, 0, nwidth, nheight, hdcmem, 0, 0, 0, srccopy );}
Complete program in "Windows Interface Programming 13th bitmap display special effect Collection"
Http://blog.csdn.net/morewindows/article/details/8696730
The next article "Windows Interface Programming 11th": bitmap display special effects random building block effect "will explain the bitmap random building block display effect.
Address: http://blog.csdn.net/morewindows/article/details/8696724
Reprinted please indicate the source, original address: http://blog.csdn.net/morewindows/article/details/8696722
Welcome to Weibo: http://weibo.com/MoreWindows