English 中文(简体)
半透明的PNG高于半透明的PNG
原标题:Winforms semi-transparent PNG over semi-transparent PNG

我认为,我必须失踪,但我无法在几小时搜查后找到。 难道没有办法利用图像Box或其它控制来控制带有部分透明度/字母缩影的图像,并且把图像放在另一个形象之上,而且这种混淆是以图像为基础的吗?

例如,这产生了我想要的结果:

  1. Place a panel on a form.
  2. Add an OnPaint handler.
  3. In the OnPaint handler draw 1 PNG, then draw another PNG over it, using Graphics.DrawImage for both.

这并不是:

  1. 照片 表格的方框,并将其交给全国过渡政府。

  2. 将另一个图像Box放在表格上,并将其交给一个全国过渡政府。

  3. 第2个图像箱的位置。

......即使第2个图像箱刚刚空出,而且具有透明性的背景,它仍然涵盖以下情况。

我一看,所有双赢控制都是窗户,因此大自然是透明的。

......甚至15年旧平台 离开博兰群岛世界文化论坛的我有几次无窗控制,因此很难取得胜利,至少有些容易的解决办法?

我的上述第一个例子就是答案,但是,如果你只能使用一个大小组,并在小组内部抽取所有“控制”的话,就增加了许多工作。 如果你能够单独控制 mo事件/事件,就会大得多。 即便不是图像控制,也是我必须自己掌握的控制权,只要我能够把一个形象放在每一个控制中,那也会是罚款。 在《世界基督教协进会》中,他们把这个“pa子”称为“pa子”,只是你可以采取的形式,并引出你想要的东西。 它有自己的 mo事、博隆德等。 如果你不从中提取任何东西,那么就象现在这样,它甚至没有(100%的透明)发生改变事件,因此也可以被用作“热点”或“目标”。

最佳回答

图像Box控制支持透明度,只是将其后科财产留给变性人。 这将使其父母的食谱成为背景。

废墟是,设计师打赢笔,让你把第二张画面带变成第1个孩子。 你们都需要在建筑商中成为一条重心的法典,以重建。 并且给它一个新地点,因为这个地点与父母相对。 与此类似:

    public Form1() {
        InitializeComponent();
        pictureBox1.Controls.Add(pictureBox2);
        pictureBox2.Location = new Point(0, 0);
        pictureBox2.BackColor = Color.Transparent;
    }

Don t hesitate to use OnPaint () btw.

问题回答

索里,我刚刚发现这......在我决定谷歌为“双向透明小组”而不是在我之前进行的搜查时,TransPictureBox的例子似乎确实表明我需要:

C#超速图像Box s的透明度问题

参看其中两部分:

  1. Set WS_EX_TRANSPARENT 缩略语

  2. 超越“草场背景”方法(或选择性地可能形成控制风格)。





相关问题
Bring window to foreground after Mutex fails

I was wondering if someone can tell me what would be the best way to bring my application to the foreground if a mutex was not able to be created for a new instance. E.g.: Application X is running ...

How to start WinForm app minimized to tray?

I ve successfully created an app that minimizes to the tray using a NotifyIcon. When the form is manually closed it is successfully hidden from the desktop, taskbar, and alt-tab. The problem occurs ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

Handle DataTable.DataRow cell change event

I have a DataTable that has several DataColumns and DataRow. Now i would like to handle an event when cell of this DataRow is changed. How to do this in c#?

Apparent Memory Leak in DataGridView

How do you force a DataGridView to release its reference to a bound DataSet? We have a rather large dataset being displayed in a DataGridView and noticed that resources were not being freed after the ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

WPF-XAML window in Winforms Application

I have a Winforms application coded in VS C# 2008 and want to insert a WPF window into the window pane of Winforms application. Could you explain me how this is done.

热门标签