如何用c#绘制出一个矩形,并且用户自己移动
展开全部
abstract class DrawBase
{
internal Color m_BackColor;
internal Color m_ForeColor;
internal static int m_HalfGrab;
public static int HalfGrab
{
get { return DrawBase.m_HalfGrab; }
set { DrawBase.m_HalfGrab = value; }
}
public Color BackColor
{
get { return m_BackColor; }
set { m_BackColor = value; }
}
public Color ForeColor
{
get { return m_ForeColor; }
set { m_ForeColor = value; }
}
public abstract Rectangle GetBound();
public abstract void Draw(Graphics g);
public abstract bool Near(int x, int y);
public abstract void SetBound(Rectangle bound);
}
int num;
{
internal Color m_BackColor;
internal Color m_ForeColor;
internal static int m_HalfGrab;
public static int HalfGrab
{
get { return DrawBase.m_HalfGrab; }
set { DrawBase.m_HalfGrab = value; }
}
public Color BackColor
{
get { return m_BackColor; }
set { m_BackColor = value; }
}
public Color ForeColor
{
get { return m_ForeColor; }
set { m_ForeColor = value; }
}
public abstract Rectangle GetBound();
public abstract void Draw(Graphics g);
public abstract bool Near(int x, int y);
public abstract void SetBound(Rectangle bound);
}
int num;
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询