关于mediaplay在自绘的form中显示问题!!

黑暗的救赎 2004-03-05 05:34:33
当在form自绘了一个形状,在透明色属性设置了一种颜色
但当mediaplay播放视频文件时,总是在闪动,看不清楚
只有把透明属性改成黑色才行(但是又有新问题了……)?
问怎么解决这个问题!!!
...全文
30 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
SaSBYa 2004-03-30
  • 打赏
  • 举报
回复
你的问题关于GDI+的贴子:
http://expert.csdn.net/Message_Board/Send.asp?sendto=shuen

我以前也遇到过,你是不是想做不规则窗体?如果是的话,建议不要使用透明色,那样处理起来,做程序时很容易 ,但运行时,很不正常.
通常不规则窗体都是使窗体的方法是这样的

http://tech.ccidnet.com/pub/disp/Article?columnID=294&articleID=25457&pageNO=1

关键是这几句话:
System.Drawing.Drawing2D.GraphicsPath myGraphicsPath = new
System.Drawing.Drawing2D.GraphicsPath();
myGraphicsPath.AddEllipse(new Rectangle(0, 0, 125, 125));
myGraphicsPath.AddEllipse(new Rectangle(75, 75, 20, 20));
myGraphicsPath.AddEllipse(new Rectangle(120, 0, 125, 125));
myGraphicsPath.AddEllipse(new Rectangle(145, 75, 20, 20));
//改变按钮的背景颜色使之能被容易辨认
button1.BackColor = Color.Chartreuse;
button1.Size = new System.Drawing.Size(256, 256);
button1.Region = new Region(myGraphicsPath);


而不是这样的:
http://www.6to23.com/s11/s11d8/s11d8d2/200416113027.htm

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧