Transparent controls for Windows Mobile

Source: Internet
Author: User

. NET Framework winformProgramSupports adjusting the transparency of controls and GDI +. You can use it to achieve a cool interface effect, such as fade in and fade out. However. NET Compact framework forms and controls do not support transparency and GDI +, so images are often used to complete some beautiful program interface effects, this will increase the size of the package with a lot of alternate images.

Today, we can see Alpha blend APIs on Windows Mobile 5.0/6, which can be used to implement some transparent controls, as shown in:

 

Why?

The demo program above comes from the open-source project of alphamobilecontrols. alphamobilecontrols provides some simple controls that can achieve transparent effects, such as alphalabel, alphapicturebox, and alphaimagebutton, they must be placed on a special alphapanel or alphaform container control. This control is implemented by encapsulating the imaging API and alphablend () API functions provided by Windows Mobile 5.0 and cannot be used in Windows Mobile 2003 programs. In addition, users who use C/C ++ can also refer to related APIs to achieve this transparent effect.

For details about how to implement Windows Mobile Alpha blend, refer to this article.Article:Http://blogs.msdn.com/chrislorton/archive/2006/04/07/570649.aspx

In addition, there is also a method to implement transparent control background. Using C/C ++ and API to draw a control using the pattern brush that draws the background, the effect is as follows:

Here no more introduction, you can see the original: http://www.codeproject.com/KB/mobile/transparent_controls.aspx

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.