Windows Interface Programming Article 10 bitmap display special effect blinds

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.