Transparent Control + stamp removal effect -- & amp; gt; Windows application software with beautiful interface

Source: Internet
Author: User

ImageAttributes imageAttr = new ImageAttributes ();
ImageAttr. SetGamma (1.0F); // specifies the re-coloring and Gamma information of the 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); // method for removing stamp effects supported by the fertilization lite frame.

Description:
1. Use the OnPaint method of the space to redraw the control (with the background) to achieve transparent effect (the transparent control of the focus can be used)
2, new Rectangle (0, 0, this. Width, this. Height) the first two parameters must be 0, 0.
3. The effect of the stamp is yes. net's scaling mechanism can be used to draw the source area based on the known area.
4. The art interface + Your transparent controls will be O!
5. Leave a message if you have any questions! Achieve each person through communication

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.