【问题标题】:Creating a form with transparent PNG as background in c#在c#中创建一个以透明PNG为背景的表单
【发布时间】:2014-10-30 16:20:39
【问题描述】:

我想创建一个以 png 为背景的透明表单...看起来与此非常相似。

http://cdn.lo4d.com/t/screenshot/800/lili-usb-creator-3.jpg

到目前为止我已经使用了这个代码

    protected override void OnPaintBackground(PaintEventArgs e)
    {
        e.Graphics.DrawImage(this.BackgroundImage, e.ClipRectangle);
    }

但问题是移动下面的部分时不会更新!

我尝试使用

invalidate();

但它会一遍又一遍地绘制图像,使阴影部分越来越密集。

有什么我可以做的吗??

【问题讨论】:

    标签: c# forms background png transparent


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 2014-07-13
      • 2013-11-25
      • 2013-12-10
      • 1970-01-01
      • 2023-04-01
      • 2011-12-04
      • 1970-01-01
      • 2014-12-18
      • 2011-05-06
      相关资源
      最近更新 更多