Transparent control + Remove stamp effect--> interface times beautiful windows application software
Source: Internet
Author: User
ImageAttributes imageattr = new ImageAttributes ();
Imageattr.setgamma (1.0F); Specifies recolor and gamma information for an image object
Pevent. Graphics.DrawImage (this. Parent.backgroundimage, New Rectangle (0, 0, this.) Width, this. Height), this. Left, this. Top, this. Width, this. Height, System.Drawing.GraphicsUnit.Pixel, imageattr);//The method of removing the stamp effect is supported by the compact version framework.
The description is as follows:
1, using the OnPaint method of space to redraw the control (with the background) to achieve transparent effects (can be transparent control of the focus)
2,new Rectangle (0, 0, this.) Width, this. Height) The first two parameters must be 0, 0.
3, the effect of the stamp is that the net of the scaling mechanism caused by the known area of the drawing of the source area can be resolved.
4, the Art interface + your transparent control on the O!
5, time haste will not say more, have questions please leave a message! Communicate the success of each person
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.