www.pudn.com > GGMeeting(jb51.net).rar > RegionHelper.cs, change:2015-04-08,size:699b


´╗┐using System; 
using System.Collections.Generic; 
using System.Text; 
using System.Windows.Forms; 
using System.Drawing.Drawing2D; 
using System.Drawing; 
 
namespace ESFramework.Boost.Controls.Internals 
{    
    internal static class RegionHelper 
    { 
        public static void CreateRegion(Control control, Rectangle rect) 
        { 
            using (GraphicsPath path = 
                GraphicsPathHelper.CreatePath(rect, 8, RoundStyle.All, false)) 
            { 
                if (control.Region != null) 
                { 
                    control.Region.Dispose(); 
                } 
                control.Region = new Region(path); 
            } 
        } 
    } 
}