30 lines
753 B
C#
30 lines
753 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Windows.Forms;
|
|
using System.Text;
|
|
|
|
namespace ControlLib.com
|
|
{
|
|
/// <summary>
|
|
/// 简单图片控件,从PictureBox继承,只是为了设置双缓冲
|
|
/// </summary>
|
|
public partial class SingleImage : PictureBox
|
|
{
|
|
public SingleImage()
|
|
{
|
|
//设置双缓冲
|
|
this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 附带参数
|
|
/// </summary>
|
|
private object m_Source = null;
|
|
public object Source
|
|
{
|
|
get { return m_Source; }
|
|
set { m_Source = value; }
|
|
}
|
|
}
|
|
}
|