如何通过使用[[((png)))image来制作形状? [英] How can made shape form by using ((( png )))image ?

查看:87
本文介绍了如何通过使用[[((png)))image来制作形状?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用(((( png ))无需使用 WPF
在Windows应用中显示图像 如
http://www.codeproject.com/KB/WPF/Shaped-WPF-Form/Selection.png [^ ]
-------------------------------------------
thanxxxxxx

How can made shape form by using ((( png )))image in windows appliction without using WPF
such as
http://www.codeproject.com/KB/WPF/Shaped-WPF-Form/Selection.png[^]
-------------------------------------------
thanxxxxxx

推荐答案

请阅读您昨天写的完全相同的问题.
如何通过使用((((png)))图片? [
Please read the exact same question you wrote yesterday.
How can made skin for windows for application by using ((( png )))image ?[^]
You got your answer right there, so go read it and you should accept Dirk''s answer. Remember to read the comments he wrote in response to your comment.


首先,通过不使用WPF",您可能意味着使用System.Windows.Forms.

仅靠PNG是不够的.您还应该为属性System.Windows.Forms.Form.Region分配一些Region.区域定义了表单实际采用的形状,而不仅仅是外观.当您在区域之外单击时,即使此区域在表单的矩形边界内,也会激活其他窗口.例如,您可以制作一个在其中间有孔的表格,并查看通过它的其他窗口.如果在整个内部单击,将激活表单后面的窗口.

参见:
http://msdn.microsoft.com/en-us/library/system. windows.forms.form.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.region.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.drawing. region.aspx [^ ].

类型System.Drawing.Region支持对点集合的集合操作,因此您可以并集(集合理论分离),相交(结合),排除或XOR区域以生成各种各样的形状,并且能够近似于任何所需的形状.

-SA
First, by "not using WPF" you might mean using System.Windows.Forms.

PNG along is not enough. You should also assign some Region to the property System.Windows.Forms.Form.Region. The Region defines what shape your form really takes, not just how it looks. When you click outside the region, some other window will be activated even if this area is inside rectangular bounds of your form. For example, you can make a form with a hole in the middle of it and see other windows through it. If you click inside this whole, the window behind your form will be activated.

See:
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.region.aspx[^],
http://msdn.microsoft.com/en-us/library/system.drawing.region.aspx[^].

The type System.Drawing.Region supports set operations on set of point, so you can Union (set-theory disjunction), Intersect (conjunction), Exclude or XOR regions to produce a great variety of shapes and be able to approximate almost any desired shape.

—SA


Thaxxxx for ::
1) SAKryukov
2)Simon Bang Terkildsen
所有人都回答我
Thaxxxx for ::
1)SAKryukov
2) Simon Bang Terkildsen
and all answer me


这篇关于如何通过使用[[((png)))image来制作形状?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆