创建类,文章摘至网络
/**//***************************************************************************************/
//
// 功能描述:不规则窗体和控件的生成类
// 撰 写 人:不祥(网上搜集)
// //
// 修改说明:2005.8.31 杨丹翻译和修改
//
/**//***************************************************************************************/
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
namespace MsgClassLibrary
//namespace popup
{
/** <summary>
/// Summary description for BitmapRegion.
/// </summary>
public class BitmapRegion
{
public BitmapRegion()
{}
/** <summary>
/// Create and apply the region on the supplied control
/// 创建支持位图区域的控件(目前有button和form)
/// </summary>
/// <param name="control">The Control object to apply the region to控件</param>
/// <param name="bitmap">The Bitmap object to create the region from位图</param>
public static void CreateControlRegion(Control control, Bitmap bitmap)
{
// Return if control and bitmap are null
//判断是否存在控件和位图
if(cont
/**//***************************************************************************************/
//
// 功能描述:不规则窗体和控件的生成类
// 撰 写 人:不祥(网上搜集)
// //
// 修改说明:2005.8.31 杨丹翻译和修改
//
/**//***************************************************************************************/
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
namespace MsgClassLibrary
//namespace popup
{
/** <summary>
/// Summary description for BitmapRegion.
/// </summary>
public class BitmapRegion
{
public BitmapRegion()
{}
/** <summary>
/// Create and apply the region on the supplied control
/// 创建支持位图区域的控件(目前有button和form)
/// </summary>
/// <param name="control">The Control object to apply the region to控件</param>
/// <param name="bitmap">The Bitmap object to create the region from位图</param>
public static void CreateControlRegion(Control control, Bitmap bitmap)
{
// Return if control and bitmap are null
//判断是否存在控件和位图
if(cont