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
Related Article

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.