如何在C#中创建一个Enso样式的应用程序

时间:2021-05-22 20:47:46

The background should be transparent, but the text should not.

背景应该是透明的,但文本不应该是透明的。

3 个解决方案

#1


0  

Enso is open source too.

恩索也是开源的。

You can directly peek at they source code.

您可以直接查看它们的源代码。

http://code.google.com/p/enso/

Let us know how they do it when you find out!.

当你发现时,让我们知道他们是如何做到的!

UPDATE

It looks like they use something called Cairo. If you can link it from C# you're done.

看起来他们使用了一种名为Cairo的东西。如果你可以从C#链接它,你就完成了。

#2


1  

By making an "Enso style" application you mean the Enso launcher?

通过制作“恩索风格”应用程序,您的意思是恩索发射器?

Here is a screenshot of it: alt text http://enscreenshots.softonic.com/s2en/68000/68880/3_ensolauncher03.jpg

以下是它的截图:alt text http://enscreenshots.softonic.com/s2en/68000/68880/3_ensolauncher03.jpg

I would suggest at looking at the open-source C# Cropper application. He does a similar looking GUI with transparent background. You can open up his project and see how he implements it.

我建议看一下开源的C#Cropper应用程序。他使用透明背景做类似的GUI。你可以打开他的项目,看看他是如何实现它的。

alt text http://img352.imageshack.us/img352/726/cropperuijt3.png

替代文字http://img352.imageshack.us/img352/726/cropperuijt3.png

#3


0  

You can set the background color, and transparency key properties to the same color and that will make the background transparent. The rest of the control items will stay non-transparent, as long as they are different colors.

您可以将背景颜色和透明度键属性设置为相同的颜色,这将使背景透明。其余的控制项目将保持不透明,只要它们是不同的颜色。

#1


0  

Enso is open source too.

恩索也是开源的。

You can directly peek at they source code.

您可以直接查看它们的源代码。

http://code.google.com/p/enso/

Let us know how they do it when you find out!.

当你发现时,让我们知道他们是如何做到的!

UPDATE

It looks like they use something called Cairo. If you can link it from C# you're done.

看起来他们使用了一种名为Cairo的东西。如果你可以从C#链接它,你就完成了。

#2


1  

By making an "Enso style" application you mean the Enso launcher?

通过制作“恩索风格”应用程序,您的意思是恩索发射器?

Here is a screenshot of it: alt text http://enscreenshots.softonic.com/s2en/68000/68880/3_ensolauncher03.jpg

以下是它的截图:alt text http://enscreenshots.softonic.com/s2en/68000/68880/3_ensolauncher03.jpg

I would suggest at looking at the open-source C# Cropper application. He does a similar looking GUI with transparent background. You can open up his project and see how he implements it.

我建议看一下开源的C#Cropper应用程序。他使用透明背景做类似的GUI。你可以打开他的项目,看看他是如何实现它的。

alt text http://img352.imageshack.us/img352/726/cropperuijt3.png

替代文字http://img352.imageshack.us/img352/726/cropperuijt3.png

#3


0  

You can set the background color, and transparency key properties to the same color and that will make the background transparent. The rest of the control items will stay non-transparent, as long as they are different colors.

您可以将背景颜色和透明度键属性设置为相同的颜色,这将使背景透明。其余的控制项目将保持不透明,只要它们是不同的颜色。