. 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