怎么样剪切一个对象
来源:互联网 发布:而又何羡乎的乎 编辑:程序博客网 时间:2024/04/30 05:57
If you only want to display part of an object you can do this through the Clip property. The clip that you define is the area of the object
如果你只想显示对象的一部分,你可以通过Clip属性来达到这个目的。你定义的这个剪切部分是你想呈现的对象区域。
that you want to be rendered. For example, say you have a rectangle defined like this:
例如,如果你有类似下面的一个矩形区域
<Rectangle Fill="DarkGoldenrod" Height="100" Width="200" StrokeThickness="3" Stroke="Black"></Rectangle>
If you only want to show part of the rectangle you can apply a clip region to it like this:
如果你只想显示矩形的一部分,你可以应用一个类似这样的一个剪切区域:
<Rectangle Fill="DarkGoldenrod" Height="100" Width="200" StrokeThickness="3" Stroke="Black">
<Rectangle.Clip>
<EllipseGeometry Center="0,0" RadiusX="80" RadiusY="80" />
</Rectangle.Clip>
</Rectangle>
You will noticed I used an EllipseGeometry and centered it in the upper-left corner. The result is a 1/4 circle 80x80 in size. In addition to
你可以注意到我使用了EllipseGeometry并且置于左上角位置,这样产生的结果就是四分之一圆的大小。除了ElllipseGeometry你还可以使用下面的4种:
EllipseGeometry you can also use:
1. RectangleGeometry
2. GeometryGroup
3. LineGeometry
4. PathGeometry
- 怎么样剪切一个对象
- iPhone开发--过度release一个对象会怎么样
- 怎么样解决一个问题
- 怎么样做一个tabscreen
- 怎么样生成一个随机数
- 怎么样做好一个博客
- 一个剪切shader 液体水
- 剪切一个非空文件夹
- NSString 剪切一个字符串 deleteCharactersInRange
- new创建一个对象时,详细的过程是怎么样的
- 剪切
- 剪切
- 数组当中怎么样交互对象
- 怎么样来理解面向对象?
- 一个新思路,你觉得怎么样?
- 开一个淘宝店怎么样?
- 做一个风投怎么样
- 怎么样去debug一个webservice
- java学习笔记一
- NUnit学习之VS.net 2005篇
- javascript数组操作大全,数组方法总汇
- 当下10大最热门的网站开发技术
- Java对象序列化成JSON对象
- 怎么样剪切一个对象
- c++中的delete和delete[]
- VB.net中使文本框的输入控制
- WAR3英雄的名字
- perl方式CGI 在本地创建文件失败
- 上来写写blog
- .net button 避免重复提交
- Java面向对象语言中的栈与堆
- 对.net事件的看法