#215 – Other Choices for Gradient Spreads Outside the Fill Area
来源:互联网 发布:淘宝店客服兼职 编辑:程序博客网 时间:2024/06/05 00:19
渐变过程中关于超出渐变区域的处理
原文地址:https://wpf.2000things.com/2011/02/12/215-other-choices-for-gradient-spreads-outside-the-fill-area/
如果在使用渐变的时候,渐变区域的开始和结束点在一条直线上,超出渐变区域的地方如何显示,将通过SpreadMethod 属性来控制。
下面的例子中,渐变从X=0.33开始,到X=0.67结束。你可以通过设置SpreadMethod 属性的不同值来控制X<0.33和X>0.67区域的渐变显示。
当SpreadMethod = GradientSpreadMethod.Pad (默认值)。超出部分将按照其边缘的颜色进行填充。
SpreadMethod = GradientSpreadMethod.Reflect。超出的部分将会反向渐变进行填充。
SpreadMethod = GradientSpreadMethod.Repeat。将会按照定义的渐变重复进行填充。
0 0
- #215 – Other Choices for Gradient Spreads Outside the Fill Area
- Choices of the Gadgets
- Limit 1 or n choices for the Multiple Selection List Box (InfoPath + SharePoint + JavaScript)
- Choices
- 【UVa】11413 – Fill the Containers
- Drawing Outside a Window's Client Area
- How to: Display a Gradient Fill
- The area
- The area
- The area
- The area
- The area
- The area
- The area
- The area
- The area
- The area
- Love is being happy for the other person
- 理解linux内核中的rbtree
- 七年失败的程序之路
- disconf使用中的问题
- react-native引导画面组件
- listview android:cacheColorHint,android:listSelector属性作用
- #215 – Other Choices for Gradient Spreads Outside the Fill Area
- 系统如何将一个信号通知到进程
- C++11学习之const限定符
- NLP︱词向量经验总结(功能作用、高维可视化、R语言实现、大规模语料、延伸拓展)
- 《数据结构之链表栈》
- 树-堆结构练习——合并果子之哈夫曼树
- 完美网络
- HttpURLConnection实现多线程网络下载
- Java中泛型的本质